From 76dea0e4f72a26bd13fc9c87b08e4ef3f58ffc51 Mon Sep 17 00:00:00 2001 From: Christoph Schmidt-Hieber Date: Thu, 5 Sep 2019 13:22:27 +0200 Subject: [PATCH] Move ugly hack to even uglier location --- samples/embedded/embedded_sample.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/embedded/embedded_sample.py b/samples/embedded/embedded_sample.py index 1f52b6cc..ed29b391 100644 --- a/samples/embedded/embedded_sample.py +++ b/samples/embedded/embedded_sample.py @@ -1,4 +1,5 @@ import wx +wx.CallAfter = lambda x, y : (x, y) from wx.py import shell, version class MyPanel(wx.Panel): @@ -6,7 +7,7 @@ class MyPanel(wx.Panel): def __init__(self, parent): # super makes the same as wx.Panel.__init__(self, parent, etc..) # but prepares for Python 3.0 among other things... - super(MyPanel, self).__init__(parent, -1, \ + super(MyPanel, self).__init__(parent, -1, style = wx.BORDER_NONE | wx.MAXIMIZE) text = wx.StaticText(self, -1, @@ -17,7 +18,6 @@ class MyPanel(wx.Panel): # the Pycrust shell object # Ugly hack to overwrite wx.CallAfter, as it requires wx.GetApp() # to return != None - wx.CallAfter = lambda x, y : (x, y) pycrust = shell.Shell(self,-1, introText = intro) # pycrust = wx.TextCtrl(self, -1, intro)