CVS: anygui/lib/anygui/backends qtgui.py,1.26,1.27

Magnus Lie Hetland <[email protected]> Sun, 17 Nov 2002 17:58:04 -0800
Newsgroups gmane.comp.python.anygui.cvs
Message-ID <[email protected]>
Update of /cvsroot/anygui/anygui/lib/anygui/backends
In directory sc8-pr-cvs1:/tmp/cvs-serv3539/lib/anygui/backends

Modified Files:
	qtgui.py 
Log Message:


Index: qtgui.py
===================================================================
RCS file: /cvsroot/anygui/anygui/lib/anygui/backends/qtgui.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -r1.26 -r1.27
*** qtgui.py	17 Nov 2002 02:08:30 -0000	1.26
--- qtgui.py	18 Nov 2002 01:58:02 -0000	1.27
***************
*** 2,5 ****
--- 2,7 ----
  # Imports
  
+ # FIXME: The "if widget" stuff doesn't seem quite consistent. [mlh]
+ 
  try:
      # Anygui specific imports
***************
*** 76,80 ****
      def internalDestroy(self):
          if DEBUG: print "in internalDestroy of: ", self
!         self.widget.destroy()
  
      def rebuild(self): pass
--- 78,83 ----
      def internalDestroy(self):
          if DEBUG: print "in internalDestroy of: ", self
!         if self.widget:
!             self.widget.destroy()
  
      def rebuild(self): pass
***************
*** 313,317 ****
                      btnGroup = QButtonGroup(container.wrapper.widget)
                      RadioButtonWrapper.groupMap[group] = btnGroup
!                     btnGroup.insert(self.widget)
              elif self.proxy not in group._items:
                  group._items.append(self.proxy)
--- 316,320 ----
                      btnGroup = QButtonGroup(container.wrapper.widget)
                      RadioButtonWrapper.groupMap[group] = btnGroup
!                     btnGroup.insert(self.widget) # What if widget is None?
              elif self.proxy not in group._items:
                  group._items.append(self.proxy)
***************
*** 320,324 ****
  
      def setValue(self, value):
!         self.widget.setChecked(bool(value))
  
      def getValue(self):
--- 323,328 ----
  
      def setValue(self, value):
!         if self.widget:
!             self.widget.setChecked(bool(value))
  
      def getValue(self):
***************
*** 537,542 ****
          dy = ny - self.proxy.state['y']
  
!         self.proxy.x
!         self.proxy.y
  
          #self.proxy.moved(dx, dy)
--- 541,546 ----
          dy = ny - self.proxy.state['y']
  
!         self.proxy.x # FIXME: What's this? [mlh]
!         self.proxy.y # FIXME: What's this? [mlh]
  
          #self.proxy.moved(dx, dy)



-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html