commit-gnue
[Top][All Lists]
Advanced

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

r5847 - trunk/gnue-designer/src/forms/LayoutEditor


From: btami
Subject: r5847 - trunk/gnue-designer/src/forms/LayoutEditor
Date: Mon, 31 May 2004 11:19:35 -0500 (CDT)

Author: btami
Date: 2004-05-31 11:19:34 -0500 (Mon, 31 May 2004)
New Revision: 5847

Modified:
   trunk/gnue-designer/src/forms/LayoutEditor/WidgetFocusTab.py
Log:
Pythonize the code...

Modified: trunk/gnue-designer/src/forms/LayoutEditor/WidgetFocusTab.py
===================================================================
--- trunk/gnue-designer/src/forms/LayoutEditor/WidgetFocusTab.py        
2004-05-30 17:43:29 UTC (rev 5846)
+++ trunk/gnue-designer/src/forms/LayoutEditor/WidgetFocusTab.py        
2004-05-31 16:19:34 UTC (rev 5847)
@@ -46,7 +46,7 @@
     self.x, self.y = widget._widgetHandler.widget.GetPositionTuple()
 
 #    self.label = wxStaticText(panel, -1, "0", pos=(self.x, self.y-10))
-    self.label = wxButton(panel, -1, "0", pos=(self.x-5, self.y-8), 
style=wxBU_EXACTFIT)
+    self.label = wxButton(panel, -1, "00", pos=(self.x-5, self.y-8), 
style=wxBU_EXACTFIT)
     self.label.SetBackgroundColour(inactiveColor)
     self.label.SetForegroundColour(textColor)
     EVT_BUTTON(self.label, self.label.GetId(), self.buttonHandler)
@@ -68,10 +68,10 @@
 
       if self.container.click <= len(self.container.list):
         if clicked > self.container.click:
-          for i in range(len(self.container.list)):
-            lb = int(self.container.list[i].label.GetLabel())
+          for focustab in self.container.list:
+            lb = int(focustab.label.GetLabel())
             if lb < clicked and lb >= self.container.click:
-              self.container.list[i].setOrder(lb+1)
+              focustab.setOrder(lb+1)
 
         self.setOrder(self.container.click)
         self.label.SetBackgroundColour(activeColor)





reply via email to

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