]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxPrintDialog.py
2 from wxPython
.wx
import *
4 #---------------------------------------------------------------------------
6 def runTest(frame
, nb
, log
):
7 data
= wxPrintDialogData()
9 data
.EnableSelection(True)
10 data
.EnablePrintToFile(True)
11 data
.EnablePageNumbers(True)
14 data
.SetAllPages(True)
16 dlg
= wxPrintDialog(frame
, data
)
17 if dlg
.ShowModal() == wxID_OK
:
18 data
= dlg
.GetPrintDialogData()
19 log
.WriteText('GetAllPages: %d\n' % data
.GetAllPages())
22 #---------------------------------------------------------------------------
32 if __name__
== '__main__':
35 run
.main(['', os
.path
.basename(sys
.argv
[0])])