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