def runTest(frame, nb, log):
     data = wxPrintDialogData()
-    data.EnablePrintToFile(true)
-    data.EnablePageNumbers(true)
-    data.EnableSelection(true)
+    data.EnablePrintToFile(True)
+    data.EnablePageNumbers(True)
+    data.EnableSelection(True)
     dlg = wxPrintDialog(frame, data)
     if dlg.ShowModal() == wxID_OK:
         log.WriteText('\n')