]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/ScrolledMessageDialog.py
Added __nonzero__ for wxTraskBarIcon
[wxWidgets.git] / wxPython / demo / ScrolledMessageDialog.py
1
2 import wx
3 import wx.lib.dialogs
4
5 #---------------------------------------------------------------------------
6
7 def runTest(frame, nb, log):
8 f = open("Main.py", "r")
9 msg = f.read()
10 f.close()
11
12 dlg = wx.lib.dialogs.ScrolledMessageDialog(frame, msg, "message test")
13 dlg.ShowModal()
14
15 #---------------------------------------------------------------------------
16
17
18
19 overview = """\
20
21 <code><b>ScrolledMessageDialog</b>(parent, msg, caption, pos=wx.DefaultPosition, size=(500,300))</code>
22
23 This class represents a message dialog that uses a wxTextCtrl to display the
24 message. This allows more flexible information display without having to be
25 as much concerned with layout requirements. A text file can simply be used
26
27 This dialog offers no special attributes or methods beyond those supported
28 by wxDialog.
29
30 """
31
32 if __name__ == '__main__':
33 import sys,os
34 import run
35 run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])