]>
Commit | Line | Data |
---|---|---|
cf694132 RD |
1 | |
2 | from wxPython.wx import * | |
3 | ||
4 | #--------------------------------------------------------------------------- | |
5 | ||
6 | def runTest(frame, nb, log): | |
7 | data = wxPageSetupDialogData() | |
8 | data.SetMarginTopLeft(wxPoint(50,50)) | |
9 | data.SetMarginBottomRight(wxPoint(50,50)) | |
10 | dlg = wxPageSetupDialog(frame, data) | |
11 | if dlg.ShowModal() == wxID_OK: | |
12 | data = dlg.GetPageSetupData() | |
13 | tl = data.GetMarginTopLeft() | |
14 | br = data.GetMarginBottomRight() | |
15 | log.WriteText('Margins are: %s %s\n' % (str(tl), str(br))) | |
16 | dlg.Destroy() | |
17 | ||
18 | #--------------------------------------------------------------------------- | |
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
1fded56b RD |
24 | overview = """\ |
25 | """ | |
cf694132 RD |
26 | |
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
1fded56b RD |
32 | if __name__ == '__main__': |
33 | import sys,os | |
34 | import run | |
35 | run.main(['', os.path.basename(sys.argv[0])]) |