]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/wxScrolledMessageDialog.py
reSWIGged
[wxWidgets.git] / wxPython / demo / wxScrolledMessageDialog.py
CommitLineData
8fa876ca
RD
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#
33785d9f
RD
13# 12/18/2003 - Jeff Grimmett (grimmtooth@softhome.net)
14#
15# o wxScrolledMessageDialog -> ScrolledMessageDialog
16#
8fa876ca
RD
17
18import wx
33785d9f 19import wx.lib.dialogs
cf694132
RD
20
21#---------------------------------------------------------------------------
22
23def runTest(frame, nb, log):
24 f = open("Main.py", "r")
25 msg = f.read()
8fa876ca
RD
26 f.close()
27
33785d9f 28 dlg = wx.lib.dialogs.ScrolledMessageDialog(frame, msg, "message test")
cf694132
RD
29 dlg.ShowModal()
30
31#---------------------------------------------------------------------------
32
33
34
1fded56b 35overview = """\
cf694132 36
33785d9f 37<code><b>ScrolledMessageDialog</b>(parent, msg, caption, pos=wx.DefaultPosition, size=(500,300))</code>
cf694132 38
8fa876ca
RD
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
cf694132 42
8fa876ca
RD
43This dialog offers no special attributes or methods beyond those supported
44by wxDialog.
1fded56b 45
8fa876ca 46"""
1fded56b
RD
47
48if __name__ == '__main__':
49 import sys,os
50 import run
51 run.main(['', os.path.basename(sys.argv[0])])