dabo Commit
Revision 5641
Date: 2010-02-03 18:38:08 -0800 (Wed, 03 Feb 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5641
Changed:
U trunk/dabo/ui/uiwx/dStatusBar.py
Log:
Added the FieldCount property.
Diff:
Modified: trunk/dabo/ui/uiwx/dStatusBar.py
===================================================================
--- trunk/dabo/ui/uiwx/dStatusBar.py 2010-02-04 02:38:02 UTC (rev 5640)
+++ trunk/dabo/ui/uiwx/dStatusBar.py 2010-02-04 02:38:08 UTC (rev 5641)
@@ -18,9 +18,10 @@
def __init__(self, parent, properties=None, attProperties=None, *args,
**kwargs):
self._baseClass = dStatusBar
preClass = wx.PreStatusBar
+ self._platformIsWindows = (self.Application.Platform == "Win")
+ self._fieldCount = 1
dcm.dControlMixin.__init__(self, preClass, parent, properties,
attProperties,
*args, **kwargs)
- self._platformIsWindows = (self.Application.Platform == "Win")
def layout(self):
@@ -38,4 +39,19 @@
pass
if self._platformIsWindows:
self.refresh()
-
+
+
+ def _getFieldCount(self):
+ return self._fieldCount
+
+ def _setFieldCount(self, val):
+ if self._constructed():
+ self._fieldCount = val
+ self.SetFieldsCount(val)
+ else:
+ self._properties["FieldCount"] = val
+
+
+ FieldCount = property(_getFieldCount, _setFieldCount, None,
+ _("Number of areas, or 'fields', in the status bar.
Default=1 (int)"))
+
_______________________________________________
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]