CVS: anygui/lib/anygui/backends qtgui.py,1.20,1.21

"Dallas T. Johnston" <[email protected]> Tue, 24 Sep 2002 08:28:31 -0700
Newsgroups gmane.comp.python.anygui.cvs
Message-ID <[email protected]>
Update of /cvsroot/anygui/anygui/lib/anygui/backends
In directory usw-pr-cvs1:/tmp/cvs-serv26679/lib/anygui/backends

Modified Files:
	qtgui.py 
Log Message:
Fixed *most* of the bugs... Only the BooleanModel doesn't want to work because of recursion when updating the model in pull/push.


Index: qtgui.py
===================================================================
RCS file: /cvsroot/anygui/anygui/lib/anygui/backends/qtgui.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** qtgui.py	23 Sep 2002 19:40:21 -0000	1.20
--- qtgui.py	24 Sep 2002 15:28:29 -0000	1.21
***************
*** 288,296 ****
      def setOn(self, on):
          if self.widget:
!             self.widget.setChecked(on)
  
      def getOn(self):
          if self.widget:
!             return self.widget.isChecked()
  
  #--------------------------------------------------------------#
--- 288,296 ----
      def setOn(self, on):
          if self.widget:
!             self.widget.setChecked(bool(on))
  
      def getOn(self):
          if self.widget:
!             return bool(self.widget.isChecked())
  
  #--------------------------------------------------------------#



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf