Skip to content

Commit d84ca69

Browse files
committed
Added new test NewWindow() to the wxpython example.
1 parent fa13f95 commit d84ca69

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

cefpython/cef3/windows/binaries/wxpython.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ <h3>Popup</h3>
3131
<a target=_blank href="wxpython.html">
3232
wxpython.html (target=_blank)</a>
3333

34+
<br>
35+
<a href="javascript:external.NewWindow()">
36+
external.NewWindow()</a>
37+
3438

3539

3640
<h3>HTML5 video and accelerated content</h3>

cefpython/cef3/windows/binaries/wxpython.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@ def GetText(self):
243243
self.stringVisitor = StringVisitor()
244244
self.mainBrowser.GetMainFrame().GetText(self.stringVisitor)
245245

246+
def NewWindow(self):
247+
frame = MainFrame()
248+
frame.Show()
249+
246250
# -------------------------------------------------------------------------
247251
# Cookies
248252
# -------------------------------------------------------------------------

0 commit comments

Comments
 (0)