]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/demo/wxScrolledMessageDialog.py
Added Brian Victor's Patch
[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
14import wx
15import wx.lib.dialogs as dlgs
16
17#---------------------------------------------------------------------------
18
19def 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
31overview = """\
32
33<code><b>wxScrolledMessageDialog</b>(parent, msg, caption, pos=wx.DefaultPosition, size=(500,300))</code>
34
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
38
39This dialog offers no special attributes or methods beyond those supported
40by wxDialog.
41
42"""
43
44if __name__ == '__main__':
45 import sys,os
46 import run
47 run.main(['', os.path.basename(sys.argv[0])])