dabo Commit
Revision 6469
Date: 2011-02-24 15:57:42 -0800 (Thu, 24 Feb 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6469
Changed:
U trunk/dabo/ui/uiwx/dTreeView.py
Log:
Fix for node caption font sizing issue on Windows platform,
where font style may vary, but size must be the same.
Diff:
Modified: trunk/dabo/ui/uiwx/dTreeView.py
===================================================================
--- trunk/dabo/ui/uiwx/dTreeView.py 2011-02-24 22:08:04 UTC (rev 6468)
+++ trunk/dabo/ui/uiwx/dTreeView.py 2011-02-24 23:57:42 UTC (rev 6469)
@@ -503,6 +503,7 @@
itemID = self.AddRoot(txt)
ret = self._rootNode = self.NodeClass(self, itemID, None)
self.nodes.append(ret)
+ ret.Font = self.Font
return ret
@@ -515,6 +516,7 @@
itemID = self.AppendItem(ndid, txt)
ret = self.NodeClass(self, itemID, node)
self.nodes.append(ret)
+ ret.Font = self.Font
return ret
@@ -911,11 +913,15 @@
def _setAbsoluteFontZoom(self, newZoom):
self._currFontZoom = newZoom
+ firstOnly = (self.Application.Platform == "Win")
for node in self.nodes:
origFontSize = node._origFontSize = getattr(node,
"_origFontSize", node.FontSize)
fontSize = origFontSize + newZoom
if fontSize > 1:
node.FontSize = fontSize
+ if firstOnly:
+ # On Windows platform all nodes has the same
font size.
+ break
if self.Form is not None:
dabo.ui.callAfterInterval(200, self.Form.layout)
_______________________________________________
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]