keep a reference to the textctrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -34,8 +34,8 @@ class ScrolledMessageDialog(wx.Dialog):
|
||||
if x == -1 and y == -1:
|
||||
self.CenterOnScreen(wx.BOTH)
|
||||
|
||||
text = wx.TextCtrl(self, -1, msg,
|
||||
style=wx.TE_MULTILINE | wx.TE_READONLY)
|
||||
self.text = text = wx.TextCtrl(self, -1, msg,
|
||||
style=wx.TE_MULTILINE | wx.TE_READONLY)
|
||||
|
||||
ok = wx.Button(self, wx.ID_OK, "OK")
|
||||
ok.SetDefault()
|
||||
|
Reference in New Issue
Block a user