From 0097dbcc26553be2d2f6a1fb78bd9a13a4123a8e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 16 Jun 2003 23:40:05 +0000 Subject: [PATCH] SetAllPages needs to be used if the Min and Max pages are set. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/wxPrintDialog.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wxPython/demo/wxPrintDialog.py b/wxPython/demo/wxPrintDialog.py index a0d3477134..b70e484dd5 100644 --- a/wxPython/demo/wxPrintDialog.py +++ b/wxPython/demo/wxPrintDialog.py @@ -5,11 +5,14 @@ from wxPython.wx import * def runTest(frame, nb, log): data = wxPrintDialogData() + + data.EnableSelection(True) data.EnablePrintToFile(True) data.EnablePageNumbers(True) - data.EnableSelection(True) data.SetMinPage(1) data.SetMaxPage(5) + data.SetAllPages(True) + dlg = wxPrintDialog(frame, data) if dlg.ShowModal() == wxID_OK: data = dlg.GetPrintDialogData()