[wxPython] Printing from wxTextCtrl (prntxtwx.py)

I am trying to provide GetPageInfo the correct number of pages to
print.

If I call OnDoPrint(self) from a method such as:

        def OnFilePrint(self,evt):
            self.control.OnDoPrint(self)

I get two print dialog windows and the page info that is contained the
first time is lost the second call.

If I call OnDoPrint without a method, I get one print dialog but I do
not know how to trigger the calculation of the number of pages.

        EVT_MENU(self,ID_FILE_PRINT< self.control.OnDoPrint)

I would like to call OnDoPrint from my method and only print the print
dialog one time.

Any assistance is greatly appreciated.

···

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com