]>
Commit | Line | Data |
---|---|---|
cf694132 RD |
1 | |
2 | from wxPython.wx import * | |
3 | ||
4 | #--------------------------------------------------------------------------- | |
5 | ||
6 | def runTest(frame, nb, log): | |
7 | data = wxPrintDialogData() | |
1fded56b RD |
8 | |
9 | data.EnableSelection(True) | |
1e4a197e RD |
10 | data.EnablePrintToFile(True) |
11 | data.EnablePageNumbers(True) | |
1fded56b RD |
12 | data.SetMinPage(1) |
13 | data.SetMaxPage(5) | |
14 | data.SetAllPages(True) | |
15 | ||
cf694132 RD |
16 | dlg = wxPrintDialog(frame, data) |
17 | if dlg.ShowModal() == wxID_OK: | |
1fded56b RD |
18 | data = dlg.GetPrintDialogData() |
19 | log.WriteText('GetAllPages: %d\n' % data.GetAllPages()) | |
cf694132 RD |
20 | dlg.Destroy() |
21 | ||
22 | #--------------------------------------------------------------------------- | |
23 | ||
24 | ||
25 | ||
26 | ||
1fded56b RD |
27 | overview = """\ |
28 | """ | |
cf694132 RD |
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])]) |