]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxScrolledMessageDialog.py
Reworked how stock objects are initialized. They now have an
[wxWidgets.git] / wxPython / demo / wxScrolledMessageDialog.py
1 # 11/21/2003 - Jeff Grimmett (grimmtooth@softhome.net)
2 #
3 # o Updated for wx namespace
4 #
5 # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net)
6 #
7 # o dialogs library needs updated to wx
8 #
9 # 12/01/2003 - Jeff Grimmett (grimmtooth@softhome.net)
10 #
11 # o dialogs library converted. All is well.
12 #
13
14 import wx
15 import wx.lib.dialogs as dlgs
16
17 #---------------------------------------------------------------------------
18
19 def runTest(frame, nb, log):
20 f = open("Main.py", "r")
21 msg = f.read()
22 f.close()
23
24 dlg = dlgs.wxScrolledMessageDialog(frame, msg, "message test")
25 dlg.ShowModal()
26
27 #---------------------------------------------------------------------------
28
29
30
31 overview = """\
32
33 <code><b>wxScrolledMessageDialog</b>(parent, msg, caption, pos=wx.DefaultPosition, size=(500,300))</code>
34
35 This class represents a message dialog that uses a wxTextCtrl to display the
36 message. This allows more flexible information display without having to be
37 as much concerned with layout requirements. A text file can simply be used
38
39 This dialog offers no special attributes or methods beyond those supported
40 by wxDialog.
41
42 """
43
44 if __name__ == '__main__':
45 import sys,os
46 import run
47 run.main(['', os.path.basename(sys.argv[0])])