commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r9320 - trunk/gnue-forms/src/uidrivers/wx26


From: johannes
Subject: [gnue] r9320 - trunk/gnue-forms/src/uidrivers/wx26
Date: Tue, 16 Jan 2007 13:17:39 -0600 (CST)

Author: johannes
Date: 2007-01-16 13:17:32 -0600 (Tue, 16 Jan 2007)
New Revision: 9320

Modified:
   trunk/gnue-forms/src/uidrivers/wx26/UIdriver.py
Log:
Fixed control_border() for positioned layout.  Thanks to elTigre.


Modified: trunk/gnue-forms/src/uidrivers/wx26/UIdriver.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx26/UIdriver.py     2007-01-16 16:02:22 UTC 
(rev 9319)
+++ trunk/gnue-forms/src/uidrivers/wx26/UIdriver.py     2007-01-16 19:17:32 UTC 
(rev 9320)
@@ -125,7 +125,7 @@
   # ---------------------------------------------------------------------------
 
   def control_border(self, control):
-      return (self.cellHeight - self.best_sizes[control][1]) / 2
+      return (self.cellHeight - self.best_sizes.get(control, [0,0])[1]) / 2
 
 
   # ---------------------------------------------------------------------------





reply via email to

[Prev in Thread] Current Thread [Next in Thread]