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
This commit is contained in:
@@ -5,11 +5,14 @@ from wxPython.wx import *
|
|||||||
|
|
||||||
def runTest(frame, nb, log):
|
def runTest(frame, nb, log):
|
||||||
data = wxPrintDialogData()
|
data = wxPrintDialogData()
|
||||||
|
|
||||||
|
data.EnableSelection(True)
|
||||||
data.EnablePrintToFile(True)
|
data.EnablePrintToFile(True)
|
||||||
data.EnablePageNumbers(True)
|
data.EnablePageNumbers(True)
|
||||||
data.EnableSelection(True)
|
|
||||||
data.SetMinPage(1)
|
data.SetMinPage(1)
|
||||||
data.SetMaxPage(5)
|
data.SetMaxPage(5)
|
||||||
|
data.SetAllPages(True)
|
||||||
|
|
||||||
dlg = wxPrintDialog(frame, data)
|
dlg = wxPrintDialog(frame, data)
|
||||||
if dlg.ShowModal() == wxID_OK:
|
if dlg.ShowModal() == wxID_OK:
|
||||||
data = dlg.GetPrintDialogData()
|
data = dlg.GetPrintDialogData()
|
||||||
|
Reference in New Issue
Block a user