dabo Commit
Revision 4499
Date: 2008-09-01 16:28:52 -0700 (Mon, 01 Sep 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4499
Changed:
U trunk/dabo/ui/uiwx/__init__.py
U trunk/dabo/ui/uiwx/dPageFrame.py
Log:
Renamed DPageFrame to dPageStyled. I simply cannot stand the thought of
completely different classes distinguished solely on the basis of
capitalization. As there have been no better names suggested, I chose
dPageStyled as the least vague of the suggestions.
Diff:
Modified: trunk/dabo/ui/uiwx/__init__.py
===================================================================
--- trunk/dabo/ui/uiwx/__init__.py 2008-09-01 23:19:25 UTC (rev 4498)
+++ trunk/dabo/ui/uiwx/__init__.py 2008-09-01 23:28:52 UTC (rev 4499)
@@ -157,7 +157,7 @@
#The flatnotebook version we need is not avialable with wxPython < 2.8.4
if wx.VERSION >= (2, 8, 4):
- from dPageFrame import DPageFrame
+ from dPageFrame import dPageStyled
# Support the old names, but issue deprecation warnings.
class dFoldPanelBar(dSlidePanelControl):
Modified: trunk/dabo/ui/uiwx/dPageFrame.py
===================================================================
--- trunk/dabo/ui/uiwx/dPageFrame.py 2008-09-01 23:19:25 UTC (rev 4498)
+++ trunk/dabo/ui/uiwx/dPageFrame.py 2008-09-01 23:28:52 UTC (rev 4499)
@@ -203,7 +203,7 @@
if _USE_FLAT:
- class DPageFrame(dPageFrameMixin, fnb.FlatNotebook):
+ class dPageStyled(dPageFrameMixin, fnb.FlatNotebook):
"""Creates a pageframe, which can contain an unlimited number
of pages,
each of which should be a subclass/instance of the dPage class.
"""
@@ -212,7 +212,7 @@
_tabposBottom = readonly(fnb.FNB_BOTTOM)
def __init__(self, parent, properties=None, attProperties=None,
*args, **kwargs):
- self._baseClass = DPageFrame
+ self._baseClass = dPageStyled
preClass = fnb.FlatNotebook
self._inactiveTabTextColor = None
@@ -228,7 +228,7 @@
dPageFrameMixin.__init__(self, preClass, parent,
properties, attProperties, *args, **kwargs)
def _initEvents(self):
- super(DPageFrame, self)._initEvents()
+ super(dPageStyled, self)._initEvents()
self.Bind(fnb.EVT_FLATNOTEBOOK_PAGE_CLOSING,
self.__onPageClosing)
self.Bind(fnb.EVT_FLATNOTEBOOK_PAGE_CLOSED,
self.__onPageClosed)
self.Bind(fnb.EVT_FLATNOTEBOOK_PAGE_CONTEXT_MENU,
self.__onPageContextMenu)
@@ -237,7 +237,7 @@
if sys.platform[:3] == "win":
## This keeps Pages from being ugly on Windows:
self.SetBackgroundColour(self.GetBackgroundColour())
- super(DPageFrame, self)._afterInit()
+ super(dPageStyled, self)._afterInit()
def __onPageClosing(self, evt):
"""The page has not yet been closed, so we can veto it
if conditions call for it."""
@@ -252,7 +252,7 @@
return self.beforePageClose(page)
def insertPage(self, *args, **kwargs):
- page = super(DPageFrame, self).insertPage(*args,
**kwargs)
+ page = super(dPageStyled, self).insertPage(*args,
**kwargs)
self.SetAllPagesShapeAngle(self._tabSideIncline)
#incline isn't autoset on new page add so set it
return page
@@ -517,7 +517,7 @@
class _dPageSelect_test(TestMixin, dPageSelect): pass
class _dDockTabs_test(TestMixin, dDockTabs): pass
if _USE_FLAT:
- class _DPageFrame_test(TestMixin, DPageFrame):
+ class _dPageStyled_test(TestMixin, dPageStyled):
def initProperties(self):
print "in init properties"
self.Width = 400
@@ -541,4 +541,4 @@
test.Test().runTest(_dPageSelect_test)
test.Test().runTest(_dDockTabs_test)
if _USE_FLAT:
- test.Test().runTest(_DPageFrame_test)
+ test.Test().runTest(_dPageStyled_test)
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]