[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue-forms/src/uidrivers/wx PrintForm.py
From: |
Jason Cater |
Subject: |
gnue-forms/src/uidrivers/wx PrintForm.py |
Date: |
Tue, 05 Aug 2003 14:45:03 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue-forms
Branch:
Changes by: Jason Cater <address@hidden> 03/08/05 14:45:03
Modified files:
src/uidrivers/wx: PrintForm.py
Log message:
fixed the screen printout feature to allow wx to redraw the screen first
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-forms/src/uidrivers/wx/PrintForm.py.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
Patches:
Index: gnue-forms/src/uidrivers/wx/PrintForm.py
diff -c gnue-forms/src/uidrivers/wx/PrintForm.py:1.2
gnue-forms/src/uidrivers/wx/PrintForm.py:1.3
*** gnue-forms/src/uidrivers/wx/PrintForm.py:1.2 Tue May 20 12:26:45 2003
--- gnue-forms/src/uidrivers/wx/PrintForm.py Tue Aug 5 14:45:03 2003
***************
*** 39,45 ****
--- 39,47 ----
import time
def printForm(form, driver):
+ _Timer(_printForm, form, driver).Start(100,1)
+ def _printForm(form, driver):
# Get a suitable title for the print job
# We default to either "Form Name" or "Form Name" + "Page Name"
# depending on if the page has a caption or not.
***************
*** 163,165 ****
--- 165,176 ----
return (x + (not rightAlign and w or 0), y + int(h * 1.3))
+ class _Timer(wxTimer):
+ def __init__(self, method, *args, **params):
+ self.__method = method
+ self.__args = args
+ self.__params = params
+ wxTimer.__init__(self)
+
+ def Notify(self):
+ self.__method(*self.__args, **self.__params)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue-forms/src/uidrivers/wx PrintForm.py,
Jason Cater <=