CVS: anygui/lib/anygui/backends mswgui.py,1.42,1.43

"Dallas T. Johnston" <[email protected]> Sat, 16 Nov 2002 09:04:20 -0800
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-serv18653/lib/anygui/backends

Modified Files:
	mswgui.py 
Log Message:
Just added **kwds to Application.__init__


Index: mswgui.py
===================================================================
RCS file: /cvsroot/anygui/anygui/lib/anygui/backends/mswgui.py,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -r1.42 -r1.43
*** mswgui.py	15 Nov 2002 13:28:24 -0000	1.42
--- mswgui.py	16 Nov 2002 17:04:18 -0000	1.43
***************
*** 167,171 ****
                  pass
              self.widget = None
!                 
  
      def setText(self,text):
--- 167,171 ----
                  pass
              self.widget = None
! 
  
      def setText(self,text):
***************
*** 249,253 ****
                                   0,
                                   item)
!                 
  
      def setSelection(self,selection):
--- 249,253 ----
                                   0,
                                   item)
! 
  
      def setSelection(self,selection):
***************
*** 314,318 ****
          self._value = -2
          ToggleButtonWrapper.__init__(self,*args,**kws)
!     
      def widgetFactory(self,*args,**kws):
          # The first radiobutton in a group must have the wxRB_GROUP style
--- 314,318 ----
          self._value = -2
          ToggleButtonWrapper.__init__(self,*args,**kws)
! 
      def widgetFactory(self,*args,**kws):
          # The first radiobutton in a group must have the wxRB_GROUP style
***************
*** 380,384 ****
          end -= text[:end].count('\n')
          return start, end
!             
      def setSelection(self,selection):
          #log("TextField._ensure_selection")
--- 380,384 ----
          end -= text[:end].count('\n')
          return start, end
! 
      def setSelection(self,selection):
          #log("TextField._ensure_selection")
***************
*** 417,421 ****
      def __init__(self,*args,**kws):
          self.widget_map = {} # maps child window handles to instances
!     
      def _WM_COMMAND(self, hwnd, msg, wParam, lParam):
          #log("ContainerMixin _WM_COMMAND called for %s"%self)
--- 417,421 ----
      def __init__(self,*args,**kws):
          self.widget_map = {} # maps child window handles to instances
! 
      def _WM_COMMAND(self, hwnd, msg, wParam, lParam):
          #log("ContainerMixin _WM_COMMAND called for %s"%self)
***************
*** 449,453 ****
          OK, this probably needs to be pulled into a mixin heritable by
          various backends.
!         
          Ensure all contents are properly created. This looks like it could
          be handled at the Proxy level, but it probably *shouldn't* be -
--- 449,453 ----
          OK, this probably needs to be pulled into a mixin heritable by
          various backends.
! 
          Ensure all contents are properly created. This looks like it could
          be handled at the Proxy level, but it probably *shouldn't* be -
***************
*** 528,532 ****
              dw = w - self._width
              dh = h - self._height
!         
          self._width = w
          self._height = h
--- 528,532 ----
              dw = w - self._width
              dh = h - self._height
! 
          self._width = w
          self._height = h
***************
*** 573,578 ****
                  }
  
!     def __init__(self):
!         AbstractApplication.__init__(self)
          if not self._wndclass:
              self._register_class()
--- 573,578 ----
                  }
  
!     def __init__(self, **kwds):
!         AbstractApplication.__init__(self, **kwds)
          if not self._wndclass:
              self._register_class()
***************
*** 605,609 ****
              x = -1
          return x
!         
      def internalRun(self):
          win32gui.PumpMessages()
--- 605,609 ----
              x = -1
          return x
! 
      def internalRun(self):
          win32gui.PumpMessages()



-------------------------------------------------------
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