]> git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/wxPIA_book/Chapter-08/help_context.py
don't use strlen() to verify the length of the string as it can contain embedded...
[wxWidgets.git] / wxPython / samples / wxPIA_book / Chapter-08 / help_context.py
1 import wx
2
3 class HelpFrame(wx.Frame):
4
5 def __init__(self):
6 pre = wx.PreFrame()
7 pre.SetExtraStyle(wx.FRAME_EX_CONTEXTHELP)
8 pre.Create(None, -1, "Help Context", size=(300, 100),
9 style=wx.DEFAULT_FRAME_STYLE ^
10 (wx.MINIMIZE_BOX | wx.MAXIMIZE_BOX))
11 self.PostCreate(pre)
12
13 if __name__ == '__main__':
14 app = wx.PySimpleApp()
15 HelpFrame().Show()
16 app.MainLoop()