-# 11/4/2003 - grimmtooth@softhome.net (Jeff Grimmett)
-#
-# o Modified for V2.5
-#
-# 11/24/2003 - grimmtooth@softhome.net (Jeff Grimmett)
-#
-# o Removed import of wx.help - now part of wx.core.
-#
import wx
cBtnText.SetHelpText("Some helpful text...")
s = wx.BoxSizer(wx.HORIZONTAL)
- s.Add(cBtn, 0, wxALL, 5)
- s.Add(cBtnText, 0, wxALL, 5)
+ s.Add(cBtn, 0, wx.ALL, 5)
+ s.Add(cBtnText, 0, wx.ALL, 5)
sizer.Add((20,20))
sizer.Add(s)
text.SetHelpText("Yet another context help message.")
sizer.Add((20,20))
sizer.Add(text)
- self.Bind(wx.EVT_HELP, self.OnCtxHelp, text)
+ text.Bind(wx.EVT_HELP, self.OnCtxHelp, text)
text = wx.TextCtrl(self, -1, "This one displays the tip itself...",
size=(240, 60), style = wx.TE_MULTILINE)
sizer.Add((20,20))
sizer.Add(text)
- self.Bind(wx.EVT_HELP, self.OnCtxHelp2, text)
-
+ text.Bind(wx.EVT_HELP, self.OnCtxHelp2, text)
+
border = wx.BoxSizer(wx.VERTICAL)
border.Add(sizer, 0, wx.ALL, 25)
# Here, we print a note about it, generate our own tip window, and,
# unlike last time, we don't pass it on to the underlying provider.
def OnCtxHelp2(self, evt):
- self.log.write("OnCtxHelp: %s\n" % evt)
+ self.log.write("OnCtxHelp2: %s\n" % evt)
tip = wx.TipWindow(self, "This is a wx.TipWindow")
if __name__ == '__main__':
import sys,os
import run
- run.main(['', os.path.basename(sys.argv[0])])
+ run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])