]>
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(wxPoint(50,50))
9 data
.SetMarginBottomRight(wxPoint(50,50))
10 dlg
= wxPageSetupDialog(frame
, data
)
11 if dlg
.ShowModal() == wxID_OK
:
12 data
= dlg
.GetPageSetupData()
13 tl
= data
.GetMarginTopLeft()
14 br
= data
.GetMarginBottomRight()
15 log
.WriteText('Margins are: %s %s\n' % (str(tl
), str(br
)))
18 #---------------------------------------------------------------------------