CVS: anygui/lib/anygui/backends wxgui.py,1.48,1.49
Magnus Lie Hetland <[email protected]> Sun, 26 Jan 2003 06:05:28 -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-serv27944/lib/anygui/backends
Modified Files:
wxgui.py
Log Message:
Index: wxgui.py
===================================================================
RCS file: /cvsroot/anygui/anygui/lib/anygui/backends/wxgui.py,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -r1.48 -r1.49
*** wxgui.py 13 Nov 2002 18:47:49 -0000 1.48
--- wxgui.py 26 Jan 2003 14:05:23 -0000 1.49
***************
*** 131,139 ****
def setSize(self,width,height):
if self.widget is None: return
! self.widget.SetSize(width,height)
def setPosition(self,x,y):
if self.widget is None: return
! self.widget.SetPosition(x,y)
def setVisible(self,visible):
--- 131,139 ----
def setSize(self,width,height):
if self.widget is None: return
! self.widget.SetSize((width,height))
def setPosition(self,x,y):
if self.widget is None: return
! self.widget.SetPosition((x,y))
def setVisible(self,visible):
***************
*** 402,405 ****
--- 402,411 ----
self.widget.SetPosition((int(x), int(y)))
self.widget.SetClientSize((int(width), int(height)))
+
+ def setSize(self,width,height):
+ # override this to set the CLIENT size (not the window size)
+ # to take account for title bar, borders and so on.
+ if self.widget is None: return
+ self.widget.SetClientSize((int(width), int(height)))
def getGeometry(self):
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com