How would print from Ben Catanzariti's program?
I have the following but it does not print to my printer:
···
_____________
def OnFilePrint(self, evt): # Print
data = wxPrintDialogData()
data.EnablePrintToFile(true)
data.EnablePageNumbers(true)
data.EnableSelection(true)
dlg = wxPrintDialog(self, data)
try:
if dlg.ShowModal() == wxID_OK:
# Your code
print "Success" # Output to Shell
self.control.WriteText('Success') # Output to Edit
window
self.control.GetValue()
finally:
dlg.Destroy()
____________
Any assistance is appreciated.
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/