[wxPython] basic window for viewing text

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/

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.

All you are doing is gathering data about how to print. You aren't actually
doing it. Take a look at the demo for an example.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!