]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxPageSetupDialog.py
2 from wxPython
.wx
import *
4 #---------------------------------------------------------------------------
6 def runTest(frame
, nb
, log
):
7 data
= wxPageSetupDialogData()
8 data
.SetMarginTopLeft( (15, 15) )
9 data
.SetMarginBottomRight( (15, 15) )
10 #data.SetDefaultMinMargins(True)
11 data
.SetPaperId(wxPAPER_LETTER
)
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
)))
21 #---------------------------------------------------------------------------
35 if __name__
== '__main__':
38 run
.main(['', os
.path
.basename(sys
.argv
[0])])