From: Kevin A. <ka...@us...> - 2004-09-15 19:25:15
|
Update of /cvsroot/pythoncard/PythonCard In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16012 Modified Files: model.py Log Message: added title attribute to pageBackground Index: model.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/model.py,v retrieving revision 1.185 retrieving revision 1.186 diff -C2 -d -r1.185 -r1.186 *** model.py 15 Sep 2004 18:53:19 -0000 1.185 --- model.py 15 Sep 2004 19:25:06 -0000 1.186 *************** *** 1730,1734 **** ## close = wx.Frame.Close ## getParent = wx.Frame.GetParent ! # KEA 2004-03-17 # define Python 2.2 new-style class properties --- 1730,1740 ---- ## close = wx.Frame.Close ## getParent = wx.Frame.GetParent ! ! def _getTitle(self): ! return wx.GetTopLevelParent(self).GetTitle() ! ! def _setTitle(self, aString): ! wx.GetTopLevelParent(self).SetTitle(aString) ! # KEA 2004-03-17 # define Python 2.2 new-style class properties *************** *** 1737,1741 **** position = property(_getPosition, _setPosition, doc="position of the background") size = property(_getSize, _setSize, doc="size of the background") ! ## title = property(wx.Frame.GetTitle, wx.Frame.SetTitle) visible = property(wx.Frame.IsShown, wx.Frame.Show, doc="whether the background window is visible") --- 1743,1747 ---- position = property(_getPosition, _setPosition, doc="position of the background") size = property(_getSize, _setSize, doc="size of the background") ! title = property(_getTitle, _setTitle, doc="title of the background") visible = property(wx.Frame.IsShown, wx.Frame.Show, doc="whether the background window is visible") |