]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxPageSetupDialog.py
adjusting to changes in xti.h
[wxWidgets.git] / wxPython / demo / wxPageSetupDialog.py
1
2 from wxPython.wx import *
3
4 #---------------------------------------------------------------------------
5
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)
12
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)))
19 dlg.Destroy()
20
21 #---------------------------------------------------------------------------
22
23
24
25
26
27 overview = """\
28 """
29
30
31
32
33
34
35 if __name__ == '__main__':
36 import sys,os
37 import run
38 run.main(['', os.path.basename(sys.argv[0])])