]>
Commit | Line | Data |
---|---|---|
8fa876ca RD |
1 | |
2 | import wx | |
33785d9f | 3 | import wx.lib.dialogs |
cf694132 RD |
4 | |
5 | #--------------------------------------------------------------------------- | |
6 | ||
7 | def 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 | 19 | overview = """\ |
cf694132 | 20 | |
33785d9f | 21 | <code><b>ScrolledMessageDialog</b>(parent, msg, caption, pos=wx.DefaultPosition, size=(500,300))</code> |
cf694132 | 22 | |
8fa876ca RD |
23 | This class represents a message dialog that uses a wxTextCtrl to display the |
24 | message. This allows more flexible information display without having to be | |
25 | as much concerned with layout requirements. A text file can simply be used | |
cf694132 | 26 | |
8fa876ca RD |
27 | This dialog offers no special attributes or methods beyond those supported |
28 | by wxDialog. | |
1fded56b | 29 | |
8fa876ca | 30 | """ |
1fded56b RD |
31 | |
32 | if __name__ == '__main__': | |
33 | import sys,os | |
34 | import run | |
8eca4fef | 35 | run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:]) |