dabo Commit
Revision 5956
Date: 2010-08-20 05:18:19 -0700 (Fri, 20 Aug 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5956

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

Log:
Fixed a bug reported by Mark Rajcok in which the WordWrap property grid columns 
was only affecting those with str DataType, and was ignoring unicode DataType.


Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2010-08-09 15:39:55 UTC (rev 5955)
+++ trunk/dabo/ui/uiwx/dGrid.py 2010-08-20 12:18:19 UTC (rev 5956)
@@ -1434,11 +1434,13 @@
                        if val != self._wordWrap:
                                self._wordWrap = val
                                if val:
-                                       self.defaultRenderers["str"] = 
self.defaultRenderers["string"] = self.wrapStringRendererClass
-                                       self.defaultEditors["str"] = 
self.defaultEditors["string"] = self.wrapStringEditorClass
+                                       for typ in (unicode, "str", "string"):
+                                               self.defaultRenderers[typ] = 
self.wrapStringRendererClass
+                                               self.defaultEditors[typ] = 
self.wrapStringEditorClass
                                else:
-                                       self.defaultRenderers["str"] = 
self.defaultRenderers["string"] = self.stringRendererClass
-                                       self.defaultEditors["str"] = 
self.defaultEditors["string"] = self.stringEditorClass
+                                       for typ in (unicode, "str", "string"):
+                                               self.defaultRenderers[typ] = 
self.stringRendererClass
+                                               self.defaultEditors[typ] = 
self.stringEditorClass
                                self._updateEditor()
                                self._updateRenderer()
                                self._refreshGrid()



_______________________________________________
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