]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/ScrolledMessageDialog.py
Renamed demo modules to be wx-less.
[wxWidgets.git] / wxPython / demo / ScrolledMessageDialog.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 # 12/18/2003 - Jeff Grimmett (grimmtooth@softhome.net)
14 #
15 # o wxScrolledMessageDialog -> ScrolledMessageDialog
16 #
17
18 import wx
19 import wx.lib.dialogs
20
21 #---------------------------------------------------------------------------
22
23 def runTest(frame, nb, log):
24 f = open("Main.py", "r")
25 msg = f.read()
26 f.close()
27
28 dlg = wx.lib.dialogs.ScrolledMessageDialog(frame, msg, "message test")
29 dlg.ShowModal()
30
31 #---------------------------------------------------------------------------
32
33
34
35 overview = """\
36
37 <code><b>ScrolledMessageDialog</b>(parent, msg, caption, pos=wx.DefaultPosition, size=(500,300))</code>
38
39 This class represents a message dialog that uses a wxTextCtrl to display the
40 message. This allows more flexible information display without having to be
41 as much concerned with layout requirements. A text file can simply be used
42
43 This dialog offers no special attributes or methods beyond those supported
44 by wxDialog.
45
46 """
47
48 if __name__ == '__main__':
49 import sys,os
50 import run
51 run.main(['', os.path.basename(sys.argv[0])])