Skip to content

Commit 15f2ec2

Browse files
committed
Added a test for creating another browser explicitly in the wxpython example.
1 parent fabbc59 commit 15f2ec2

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

cefpython/cef3/linux/binaries_64bit/wxpython.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ <h3>Popup</h3>
3030

3131

3232

33+
<h3>Create another browser</h3>
34+
<a href="javascript:external.CreateAnotherBrowser()">
35+
external.CreateAnotherBrowser()</a>
36+
37+
38+
39+
3340
<h3>HTML5 video and accelerated content</h3>
3441
<a href="http://www.youtube.com/watch?v=siOHh0uzcuY&html5=True">
3542
HTML 5 video</a><br>

cefpython/cef3/linux/binaries_64bit/wxpython.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ class JavascriptExternal:
165165
def __init__(self, mainBrowser):
166166
self.mainBrowser = mainBrowser
167167

168+
def CreateAnotherBrowser(self):
169+
frame = MainFrame()
170+
frame.Show()
171+
168172
def Print(self, message):
169173
print(message)
170174

0 commit comments

Comments
 (0)