dabo Commit
Revision 1594
Date: 2005-11-29 07:47:15 -0800 (Tue, 29 Nov 2005)
Author: paul
Changed:
U trunk/dabo/ui/uiwx/dListControl.py
Log:
Found and fixed a problem with dListControl: dControlItemMixin refers to a
Count property which calls GetCount(), but wxListControl doesn't have a
GetCount() method. I worked around the problem by adding a Count property
to dListControl, which is a proxy to RowCount.
Diff:
Modified: trunk/dabo/ui/uiwx/dListControl.py
===================================================================
--- trunk/dabo/ui/uiwx/dListControl.py 2005-11-29 01:06:21 UTC (rev 1593)
+++ trunk/dabo/ui/uiwx/dListControl.py 2005-11-29 15:47:15 UTC (rev 1594)
@@ -383,6 +383,11 @@
ColumnCount = property(_getColCount, None, None,
_("Number of columns in the control (read-only).
(int)") )
+ Count = property(_getRowCount, None, None,
+ _("""Number of rows in the control (read-only). (int)
+
+ This is an alias for RowCount."""))
+
HeaderVisible = property(_getHeaderVisible, _setHeaderVisible, None,
_("Specifies whether the header is shown or not."))
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev