We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3658eb commit 9c567bfCopy full SHA for 9c567bf
1 file changed
examples/wxpython.py
@@ -105,7 +105,7 @@ def __init__(self):
105
# still not yet available, so must delay embedding browser
106
# (Issue #349).
107
if wx.version().startswith("3.") or wx.version().startswith("4."):
108
- wx.CallLater(20, self.embed_browser)
+ wx.CallLater(100, self.embed_browser)
109
else:
110
# This works fine in wxPython 2.8 on Linux
111
self.embed_browser()
@@ -132,6 +132,7 @@ def create_menu(self):
132
def embed_browser(self):
133
window_info = cef.WindowInfo()
134
(width, height) = self.browser_panel.GetClientSize().Get()
135
+ assert self.browser_panel.GetHandle(), "Window handle not available yet"
136
window_info.SetAsChild(self.browser_panel.GetHandle(),
137
[0, 0, width, height])
138
self.browser = cef.CreateBrowserSync(window_info,
0 commit comments