dabo Commit
Revision 5953
Date: 2010-08-05 09:22:28 -0700 (Thu, 05 Aug 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5953
Changed:
U trunk/dabo/ui/uiwx/dListControl.py
Log:
Passing 'style' as an argument was generating errors (#1369). This corrects
that problem.
Diff:
Modified: trunk/dabo/ui/uiwx/dListControl.py
===================================================================
--- trunk/dabo/ui/uiwx/dListControl.py 2010-08-04 16:58:03 UTC (rev 5952)
+++ trunk/dabo/ui/uiwx/dListControl.py 2010-08-05 16:22:28 UTC (rev 5953)
@@ -20,7 +20,8 @@
elements inside of the row. If you need to be able to work with
individual
elements, you should use a dGrid.
"""
- def __init__(self, parent, properties=None, attProperties=None, *args,
**kwargs):
+ def __init__(self, parent, properties=None, attProperties=None,
+ style=None, *args, **kwargs):
self._baseClass = dListControl
self._lastSelectedIndex = None
@@ -38,7 +39,7 @@
try:
style = style | wx.LC_REPORT
- except NameError:
+ except TypeError:
style = wx.LC_REPORT
preClass = wx.PreListCtrl
dcm.dControlItemMixin.__init__(self, preClass, parent,
properties, attProperties,
_______________________________________________
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]