]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/ScrolledMessageDialog.py
Delay checking for the requested sash position until the first
[wxWidgets.git] / wxPython / demo / ScrolledMessageDialog.py
CommitLineData
8fa876ca
RD
1
2import wx
33785d9f 3import wx.lib.dialogs
cf694132
RD
4
5#---------------------------------------------------------------------------
6
7def runTest(frame, nb, log):
8 f = open("Main.py", "r")
9 msg = f.read()
8fa876ca
RD
10 f.close()
11
33785d9f 12 dlg = wx.lib.dialogs.ScrolledMessageDialog(frame, msg, "message test")
cf694132
RD
13 dlg.ShowModal()
14
15#---------------------------------------------------------------------------
16
17
18
1fded56b 19overview = """\
cf694132 20
33785d9f 21<code><b>ScrolledMessageDialog</b>(parent, msg, caption, pos=wx.DefaultPosition, size=(500,300))</code>
cf694132 22
8fa876ca
RD
23This class represents a message dialog that uses a wxTextCtrl to display the
24message. This allows more flexible information display without having to be
25as much concerned with layout requirements. A text file can simply be used
cf694132 26
8fa876ca
RD
27This dialog offers no special attributes or methods beyond those supported
28by wxDialog.
1fded56b 29
8fa876ca 30"""
1fded56b
RD
31
32if __name__ == '__main__':
33 import sys,os
34 import run
35 run.main(['', os.path.basename(sys.argv[0])])