]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/demo/wxScrolledMessageDialog.py
reSWIGged
[wxWidgets.git] / wxPython / demo / wxScrolledMessageDialog.py
... / ...
CommitLineData
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
18import wx
19import wx.lib.dialogs
20
21#---------------------------------------------------------------------------
22
23def 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
35overview = """\
36
37<code><b>ScrolledMessageDialog</b>(parent, msg, caption, pos=wx.DefaultPosition, size=(500,300))</code>
38
39This class represents a message dialog that uses a wxTextCtrl to display the
40message. This allows more flexible information display without having to be
41as much concerned with layout requirements. A text file can simply be used
42
43This dialog offers no special attributes or methods beyond those supported
44by wxDialog.
45
46"""
47
48if __name__ == '__main__':
49 import sys,os
50 import run
51 run.main(['', os.path.basename(sys.argv[0])])