X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..71aba8333cc915afff9e740c944f7fa7247abacb:/wxPython/demo/wxPrintDialog.py diff --git a/wxPython/demo/wxPrintDialog.py b/wxPython/demo/wxPrintDialog.py index 50da750bd2..b70e484dd5 100644 --- a/wxPython/demo/wxPrintDialog.py +++ b/wxPython/demo/wxPrintDialog.py @@ -5,12 +5,18 @@ from wxPython.wx import * def runTest(frame, nb, log): data = wxPrintDialogData() - data.EnablePrintToFile(true) - data.EnablePageNumbers(true) - data.EnableSelection(true) + + data.EnableSelection(True) + data.EnablePrintToFile(True) + data.EnablePageNumbers(True) + data.SetMinPage(1) + data.SetMaxPage(5) + data.SetAllPages(True) + dlg = wxPrintDialog(frame, data) if dlg.ShowModal() == wxID_OK: - log.WriteText('\n') + data = dlg.GetPrintDialogData() + log.WriteText('GetAllPages: %d\n' % data.GetAllPages()) dlg.Destroy() #--------------------------------------------------------------------------- @@ -18,14 +24,12 @@ def runTest(frame, nb, log): +overview = """\ +""" - - - - - - -overview = """\ -""" +if __name__ == '__main__': + import sys,os + import run + run.main(['', os.path.basename(sys.argv[0])])