Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ee26452

Browse filesBrowse files
committed
Added SetZoomLevel test to wxpython example on Win.
1 parent 900a72a commit ee26452
Copy full SHA for ee26452

File tree

Expand file treeCollapse file tree

4 files changed

+18
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

4 files changed

+18
-0
lines changed
Open diff view settings
Collapse file

‎cefpython/cef3/windows/binaries_32bit/wxpython.html‎

Copy file name to clipboardExpand all lines: cefpython/cef3/windows/binaries_32bit/wxpython.html
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,12 @@ <h3>LoadUrl, GetUrl</h3>
233233
<a href="javascript:window.open('data:text/html,Test#Browser.LoadUrl')">
234234
window.open('data:text/html,Test#Browser.LoadUrl')</a>
235235

236+
<h3>SetZoomLevel</h3>
237+
(You must set ApplicationSettings.auto_zooming = "" for SetZoomLevel calls
238+
to work)<br>
239+
<a href="javascript:external.SetZoomLevel(2.0)">external.SetZoomLevel(2.0)</a><br>
240+
<a href="javascript:external.SetZoomLevel(1.0)">external.SetZoomLevel(1.0)</a>
241+
236242
<h3>ReloadIgnoreCache, StopLoad</h3>
237243
Press F5 to reload page and ignore cache.<br>
238244
Press Esc during webpage loading to abort.<br>
Collapse file

‎cefpython/cef3/windows/binaries_32bit/wxpython.py‎

Copy file name to clipboardExpand all lines: cefpython/cef3/windows/binaries_32bit/wxpython.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ def GoBack(self):
244244
def GoForward(self):
245245
self.mainBrowser.GoForward()
246246

247+
def SetZoomLevel(self, zoomLevel):
248+
self.mainBrowser.SetZoomLevel(zoomLevel)
249+
247250
def CreateAnotherBrowser(self, url=None):
248251
frame = MainFrame(url=url)
249252
frame.Show()
Collapse file

‎cefpython/cef3/windows/binaries_64bit/wxpython.html‎

Copy file name to clipboardExpand all lines: cefpython/cef3/windows/binaries_64bit/wxpython.html
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,12 @@ <h3>LoadUrl, GetUrl</h3>
233233
<a href="javascript:window.open('data:text/html,Test#Browser.LoadUrl')">
234234
window.open('data:text/html,Test#Browser.LoadUrl')</a>
235235

236+
<h3>SetZoomLevel</h3>
237+
(You must set ApplicationSettings.auto_zooming = "" for SetZoomLevel calls
238+
to work)<br>
239+
<a href="javascript:external.SetZoomLevel(2.0)">external.SetZoomLevel(2.0)</a><br>
240+
<a href="javascript:external.SetZoomLevel(1.0)">external.SetZoomLevel(1.0)</a>
241+
236242
<h3>ReloadIgnoreCache, StopLoad</h3>
237243
Press F5 to reload page and ignore cache.<br>
238244
Press Esc during webpage loading to abort.<br>
Collapse file

‎cefpython/cef3/windows/binaries_64bit/wxpython.py‎

Copy file name to clipboardExpand all lines: cefpython/cef3/windows/binaries_64bit/wxpython.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ def GoBack(self):
244244
def GoForward(self):
245245
self.mainBrowser.GoForward()
246246

247+
def SetZoomLevel(self, zoomLevel):
248+
self.mainBrowser.SetZoomLevel(zoomLevel)
249+
247250
def CreateAnotherBrowser(self, url=None):
248251
frame = MainFrame(url=url)
249252
frame.Show()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.