Some demo tweaks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-06-06 20:04:50 +00:00
parent 2062833988
commit 6bc7d0dda4
3 changed files with 19 additions and 12 deletions

View File

@@ -8,9 +8,12 @@ def runTest(frame, nb, log):
data.EnablePrintToFile(True)
data.EnablePageNumbers(True)
data.EnableSelection(True)
data.SetMinPage(1)
data.SetMaxPage(5)
dlg = wxPrintDialog(frame, data)
if dlg.ShowModal() == wxID_OK:
log.WriteText('\n')
data = dlg.GetPrintDialogData()
log.WriteText('GetAllPages: %d\n' % data.GetAllPages())
dlg.Destroy()
#---------------------------------------------------------------------------