mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
More tweaks and fixes from testing the demo modules
This commit is contained in:
@@ -25,7 +25,6 @@ class TestPanel(wx.Panel):
|
||||
# Init the context help button.
|
||||
# And even include help text about the help button :-)
|
||||
cBtn = wx.ContextHelpButton(self)
|
||||
cBtn.Bind(wx.EVT_BUTTON, self.OnCtxHelpButton)
|
||||
cBtn.SetHelpText("wx.ContextHelpButton")
|
||||
|
||||
cBtnText = wx.StaticText(self, -1,
|
||||
@@ -72,12 +71,6 @@ class TestPanel(wx.Panel):
|
||||
self.Layout()
|
||||
|
||||
|
||||
def OnCtxHelpButton(self, evt):
|
||||
# This starts a nested event loop which exits when an item has been
|
||||
# clicked on, its help message shown and dismissed.
|
||||
cshelp = wx.ContextHelp(self)
|
||||
|
||||
|
||||
# On the second text control above, we intercept the help event. This is where
|
||||
# we process it. Anything could happen here. In this case we're just printing
|
||||
# some stuff about it, then passing it on with Skip(), at which point we
|
||||
|
||||
Reference in New Issue
Block a user