mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Move ugly hack to even uglier location
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import wx
|
import wx
|
||||||
|
wx.CallAfter = lambda x, y : (x, y)
|
||||||
from wx.py import shell, version
|
from wx.py import shell, version
|
||||||
|
|
||||||
class MyPanel(wx.Panel):
|
class MyPanel(wx.Panel):
|
||||||
@@ -6,7 +7,7 @@ class MyPanel(wx.Panel):
|
|||||||
def __init__(self, parent):
|
def __init__(self, parent):
|
||||||
# super makes the same as wx.Panel.__init__(self, parent, etc..)
|
# super makes the same as wx.Panel.__init__(self, parent, etc..)
|
||||||
# but prepares for Python 3.0 among other things...
|
# 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)
|
style = wx.BORDER_NONE | wx.MAXIMIZE)
|
||||||
|
|
||||||
text = wx.StaticText(self, -1,
|
text = wx.StaticText(self, -1,
|
||||||
@@ -17,7 +18,6 @@ class MyPanel(wx.Panel):
|
|||||||
# the Pycrust shell object
|
# the Pycrust shell object
|
||||||
# Ugly hack to overwrite wx.CallAfter, as it requires wx.GetApp()
|
# Ugly hack to overwrite wx.CallAfter, as it requires wx.GetApp()
|
||||||
# to return != None
|
# to return != None
|
||||||
wx.CallAfter = lambda x, y : (x, y)
|
|
||||||
pycrust = shell.Shell(self,-1, introText = intro)
|
pycrust = shell.Shell(self,-1, introText = intro)
|
||||||
# pycrust = wx.TextCtrl(self, -1, intro)
|
# pycrust = wx.TextCtrl(self, -1, intro)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user