[Anygui-checkins] CVS: anygui/lib/anygui/backends wxgui.py,1.48,1.49
Brought to you by:
mlh
From: Magnus L. H. <ml...@us...> - 2003-01-26 14:05:28
|
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): |