]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxPrintDialog.py
focus setting must be possible even when not shown yet
[wxWidgets.git] / wxPython / demo / wxPrintDialog.py
1
2 from wxPython.wx import *
3
4 #---------------------------------------------------------------------------
5
6 def runTest(frame, nb, log):
7 data = wxPrintDialogData()
8
9 data.EnableSelection(True)
10 data.EnablePrintToFile(True)
11 data.EnablePageNumbers(True)
12 data.SetMinPage(1)
13 data.SetMaxPage(5)
14 data.SetAllPages(True)
15
16 dlg = wxPrintDialog(frame, data)
17 if dlg.ShowModal() == wxID_OK:
18 data = dlg.GetPrintDialogData()
19 log.WriteText('GetAllPages: %d\n' % data.GetAllPages())
20 dlg.Destroy()
21
22 #---------------------------------------------------------------------------
23
24
25
26
27 overview = """\
28 """
29
30
31
32 if __name__ == '__main__':
33 import sys,os
34 import run
35 run.main(['', os.path.basename(sys.argv[0])])