]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/demo/ScrolledMessageDialog.py
Added config checks for wxUSE_IMAGE = 0.
[wxWidgets.git] / wxPython / demo / ScrolledMessageDialog.py
... / ...
CommitLineData
1
2import wx
3import wx.lib.dialogs
4
5#---------------------------------------------------------------------------
6
7def runTest(frame, nb, log):
8 f = open("Main.py", "r")
9 msg = f.read()
10 f.close()
11
12 dlg = wx.lib.dialogs.ScrolledMessageDialog(frame, msg, "message test")
13 dlg.ShowModal()
14
15#---------------------------------------------------------------------------
16
17
18
19overview = """\
20
21<code><b>ScrolledMessageDialog</b>(parent, msg, caption, pos=wx.DefaultPosition, size=(500,300))</code>
22
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
26
27This dialog offers no special attributes or methods beyond those supported
28by wxDialog.
29
30"""
31
32if __name__ == '__main__':
33 import sys,os
34 import run
35 run.main(['', os.path.basename(sys.argv[0])])