CVS: anygui/lib/anygui Wrappers.py,1.35,1.36
Samuele Pedroni <[email protected]> Sun, 13 Oct 2002 17:47:38 -0700
| Newsgroups | gmane.comp.python.anygui.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/anygui/anygui/lib/anygui
In directory usw-pr-cvs1:/tmp/cvs-serv31321
Modified Files:
Wrappers.py
Log Message:
added _test flag to constructor, calling it with _test=1 allows to construct test subclasses that do not define prod and even when there's no application instance. Used in test_wrapper.
Index: Wrappers.py
===================================================================
RCS file: /cvsroot/anygui/anygui/lib/anygui/Wrappers.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -r1.35 -r1.36
*** Wrappers.py 10 Sep 2002 20:17:20 -0000 1.35
--- Wrappers.py 14 Oct 2002 00:47:36 -0000 1.36
***************
*** 54,58 ****
widget = None # @@@ was DummyWidget()
! def __init__(self, proxy):
"""
Store the proxy and perform general initialisation.
--- 54,58 ----
widget = None # @@@ was DummyWidget()
! def __init__(self, proxy, _test=0):
"""
Store the proxy and perform general initialisation.
***************
*** 81,87 ****
self.constraints = []
! application().manage(self)
! self.inMainLoop = 0
! self.prod() #@@@ ?
def setAggregateSetter(self, name, signature):
--- 81,88 ----
self.constraints = []
! if not _test:
! application().manage(self)
! self.inMainLoop = 0
! self.prod() #@@@ ?
def setAggregateSetter(self, name, signature):
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf