[Commits] (john) upgrade to using super instead of explicitly
calling superclass
commits at osafoundation.org
commits at osafoundation.org
Thu May 27 14:41:17 PDT 2004
Commit by: john
Modified files:
chandler/parcels/osaf/framework/blocks/ContainerBlocks.py 1.92 1.93
chandler/parcels/osaf/framework/blocks/ControlBlocks.py 1.39 1.40
chandler/parcels/osaf/framework/blocks/NavigationBlocks.py 1.15 1.16
Log message:
upgrade to using super instead of explicitly calling superclass
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/blocks/ContainerBlocks.py.diff?r1=text&tr1=1.92&r2=text&tr2=1.93
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/blocks/ControlBlocks.py.diff?r1=text&tr1=1.39&r2=text&tr2=1.40
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/blocks/NavigationBlocks.py.diff?r1=text&tr1=1.15&r2=text&tr2=1.16
Index: chandler/parcels/osaf/framework/blocks/ControlBlocks.py
diff -u chandler/parcels/osaf/framework/blocks/ControlBlocks.py:1.39 chandler/parcels/osaf/framework/blocks/ControlBlocks.py:1.40
--- chandler/parcels/osaf/framework/blocks/ControlBlocks.py:1.39 Thu May 27 12:11:07 2004
+++ chandler/parcels/osaf/framework/blocks/ControlBlocks.py Thu May 27 14:40:46 2004
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.39 $"
-__date__ = "$Date: 2004/05/27 19:11:07 $"
+__version__ = "$Revision: 1.40 $"
+__date__ = "$Date: 2004/05/27 21:40:46 $"
__copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -102,7 +102,7 @@
class wxEditText(wx.TextCtrl):
def __init__(self, *arguments, **keywords):
- wx.TextCtrl.__init__ (self, *arguments, **keywords)
+ super (wxEditText, self).__init__ (*arguments, **keywords)
self.Bind(wx.EVT_TEXT_ENTER, self.OnEnterPressed, id=self.GetId())
def OnEnterPressed(self, event):
@@ -194,7 +194,7 @@
class wxList (wx.ListCtrl):
def __init__(self, *arguments, **keywords):
- wx.ListCtrl.__init__(self, *arguments, **keywords)
+ super (wxList, self).__init__ (*arguments, **keywords)
self.scheduleUpdate = False
self.lastUpdateTime = 0
self.Bind(wx.EVT_LIST_ITEM_SELECTED, self.On_wxSelectionChanged, id=self.GetId())
@@ -315,7 +315,7 @@
class wxSummaryTable(wx.grid.PyGridTableBase):
def __init__(self, elementDelegate):
- wx.grid.PyGridTableBase.__init__ (self)
+ super (wxSummaryTable, self).__init__ ()
self.elementDelegate = elementDelegate
self.cellAttribute = wx.grid.GridCellAttr()
@@ -805,13 +805,13 @@
class wxTree(wx.TreeCtrl, wxTreeAndList):
def __init__(self, *arguments, **keywords):
- wx.TreeCtrl.__init__ (self, *arguments, **keywords)
+ super (wxTree, self).__init__ (*arguments, **keywords)
wxTreeAndList.__init__ (self, *arguments, **keywords)
class wxTreeList(wx.gizmos.TreeListCtrl, wxTreeAndList):
def __init__(self, *arguments, **keywords):
- wx.gizmos.TreeListCtrl.__init__ (self, *arguments, **keywords)
+ super (wxTreeList, self).__init__ (*arguments, **keywords)
wxTreeAndList.__init__ (self, *arguments, **keywords)
Index: chandler/parcels/osaf/framework/blocks/NavigationBlocks.py
diff -u chandler/parcels/osaf/framework/blocks/NavigationBlocks.py:1.15 chandler/parcels/osaf/framework/blocks/NavigationBlocks.py:1.16
--- chandler/parcels/osaf/framework/blocks/NavigationBlocks.py:1.15 Tue May 25 17:55:34 2004
+++ chandler/parcels/osaf/framework/blocks/NavigationBlocks.py Thu May 27 14:40:46 2004
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.15 $"
-__date__ = "$Date: 2004/05/26 00:55:34 $"
+__version__ = "$Revision: 1.16 $"
+__date__ = "$Date: 2004/05/27 21:40:46 $"
__copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -17,7 +17,7 @@
Under construction
"""
def __init__(self, parent, text, onClickMethod, userData, id=-1):
- wx.StaticText.__init__(self, parent, id, text)
+ super (wxBookmark, self).__init__ (parent, id, text)
self.onClickMethod = onClickMethod
self.userData = userData
self.Bind(wx.EVT_LEFT_DOWN, self.onClick)
Index: chandler/parcels/osaf/framework/blocks/ContainerBlocks.py
diff -u chandler/parcels/osaf/framework/blocks/ContainerBlocks.py:1.92 chandler/parcels/osaf/framework/blocks/ContainerBlocks.py:1.93
--- chandler/parcels/osaf/framework/blocks/ContainerBlocks.py:1.92 Thu May 27 14:24:56 2004
+++ chandler/parcels/osaf/framework/blocks/ContainerBlocks.py Thu May 27 14:40:46 2004
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.92 $"
-__date__ = "$Date: 2004/05/27 21:24:56 $"
+__version__ = "$Revision: 1.93 $"
+__date__ = "$Date: 2004/05/27 21:40:46 $"
__copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -119,7 +119,7 @@
class wxSplitterWindow(wx.SplitterWindow):
def __init__(self, *arguments, **keywords):
- wx.SplitterWindow.__init__ (self, *arguments, **keywords)
+ super (wxSplitterWindow, self).__init__ (*arguments, **keywords)
self.Bind(wx.EVT_SPLITTER_SASH_POS_CHANGED,
self.OnSplitChanged,
id=self.GetId())
@@ -245,7 +245,7 @@
class wxTabbedContainer(wx.Notebook):
def __init__(self, *arguments, **keywords):
- wx.Notebook.__init__(self, *arguments, **keywords)
+ super (wxTabbedContainer, self).__init__ (*arguments, **keywords)
self.selectedTab = 0
self.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGING, self.OnSelectionChanging,
More information about the Commits
mailing list