File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed
Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -455,6 +455,8 @@ git diff --no-prefix --relative > issue251.patch
455455To create a patch from last two commits:
456456```
457457git diff --no-prefix --relative HEAD~2..HEAD > issue251.patch
458+ # or
459+ git format-patch --no-prefix -2 HEAD --stdout > issue251.patch
458460```
459461
460462Apply a patch in current directory and ignore git index:
Original file line number Diff line number Diff line change @@ -643,6 +643,13 @@ is called which retrieves image buffer that was earlier stored
643643in the browser object and then uses Pillow image library to save
644644it as a PNG image.
645645
646+ The screenshot example could be further extended, so that it
647+ makes a screenshot of the whole page no matter how long it is.
648+ Detecting page length could be done in Javascript and then
649+ communicated back with Python using [ Javascript bindings] ( #javscript-integration ) .
650+ After whole page length is known a call to browser.WasResized()
651+ should be done so that GetViewRect and OnPaint are called again.
652+
646653At the end, it is worth noting that there is yet an another
647654option for off-screen rendering named [ windowless_frame_rate] ( ../api/BrowserSettings.md#windowless_frame_rate )
648655(can be passed to [ CreateBrowserSync] ( ../api/cefpython.md#createbrowsersync ) ),
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ workarounds.
3939
4040- [ gtk2.py] ( gtk2.py ) : example for [ PyGTK] ( http://www.pygtk.org/ )
4141 library (GTK 2)
42- - [ gtk3.py] ( gtk3.py ) : example for [ PyGObject/ PyGI] ( https://wiki.gnome.org/Projects/PyGObject )
42+ - [ gtk3.py] ( gtk3.py ) : example for [ PyGObject / PyGI] ( https://wiki.gnome.org/Projects/PyGObject )
4343 library (GTK 3). Currently broken on Mac ([ #310 ] ( ../../../issues/310 ) ).
4444- [ qt.py] ( qt.py ) : example for [ PyQt4] ( https://wiki.python.org/moin/PyQt4 ) ,
4545 [ PyQt5] ( https://pypi.python.org/pypi/PyQt5 )
Original file line number Diff line number Diff line change @@ -85,13 +85,13 @@ def __init__(self):
8585 # is available (Issue #347).
8686 if LINUX :
8787 self .Show ()
88- # In wxPython 3.0 and wxPython 4.0 handle is still
89- # not yet available, must delay embedding browser
88+ # In wxPython 3.0 and wxPython 4.0 on Linux handle is
89+ # still not yet available, so must delay embedding browser
9090 # (Issue #349).
9191 if wx .version ().startswith ("3." ) or wx .version ().startswith ("4." ):
9292 wx .CallLater (20 , self .embed_browser )
9393 else :
94- # This works fine in wxPython 2.8
94+ # This works fine in wxPython 2.8 on Linux
9595 self .embed_browser ()
9696 else :
9797 self .embed_browser ()
You can’t perform that action at this time.
0 commit comments