X Tutup
Skip to content

Commit 0eee591

Browse files
committed
Update Tutorial and other minor fixes
1 parent f3221a0 commit 0eee591

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

docs/Build-instructions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,8 @@ git diff --no-prefix --relative > issue251.patch
455455
To create a patch from last two commits:
456456
```
457457
git diff --no-prefix --relative HEAD~2..HEAD > issue251.patch
458+
# or
459+
git format-patch --no-prefix -2 HEAD --stdout > issue251.patch
458460
```
459461

460462
Apply a patch in current directory and ignore git index:

docs/Tutorial.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,13 @@ is called which retrieves image buffer that was earlier stored
643643
in the browser object and then uses Pillow image library to save
644644
it 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+
646653
At the end, it is worth noting that there is yet an another
647654
option for off-screen rendering named [windowless_frame_rate](../api/BrowserSettings.md#windowless_frame_rate)
648655
(can be passed to [CreateBrowserSync](../api/cefpython.md#createbrowsersync)),

examples/Examples-README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

examples/wxpython.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)
X Tutup