]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/demo/wxPrintDialog.py
added comments to the makefile; added WX_CONFIG var to be able to use a different...
[wxWidgets.git] / wxPython / demo / wxPrintDialog.py
... / ...
CommitLineData
1
2from wxPython.wx import *
3
4#---------------------------------------------------------------------------
5
6def 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
27overview = """\
28"""
29
30
31
32if __name__ == '__main__':
33 import sys,os
34 import run
35 run.main(['', os.path.basename(sys.argv[0])])