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