dabo Commit
Revision 6478
Date: 2011-02-27 07:03:16 -0800 (Sun, 27 Feb 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6478

Changed:
U   trunk/dabo/ui/uiwx/dLine.py

Log:
Allowed the Orientation property to be specified by simply 'h' or 'v' instead 
of only allowing the exact 'Horizontal' or 'Vertical' strings.


Diff:
Modified: trunk/dabo/ui/uiwx/dLine.py
===================================================================
--- trunk/dabo/ui/uiwx/dLine.py 2011-02-27 12:48:41 UTC (rev 6477)
+++ trunk/dabo/ui/uiwx/dLine.py 2011-02-27 15:03:16 UTC (rev 6478)
@@ -44,11 +44,10 @@
                self._delWindowStyleFlag(wx.LI_VERTICAL)
                self._delWindowStyleFlag(wx.LI_HORIZONTAL)
 
-               value = ustr(value)
-
-               if value == "Vertical":
+               value = ustr(value)[0].lower()
+               if value == "v":
                        self._addWindowStyleFlag(wx.LI_VERTICAL)
-               elif value == "Horizontal":
+               elif value == "h":
                        self._addWindowStyleFlag(wx.LI_HORIZONTAL)
                else:
                        raise ValueError("The only possible values are "



_______________________________________________
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]

Reply via email to