Bug on NoteBook in Windows corrected
authorlbessard
Thu, 10 Aug 2006 17:13:23 +0200
changeset 43 56ab4f38075e
parent 42 17f0ea205942
child 44 d1cb883667c0
Bug on NoteBook in Windows corrected
objdictgen/objdictedit.py
--- a/objdictgen/objdictedit.py	Thu Aug 10 08:53:05 2006 +0200
+++ b/objdictgen/objdictedit.py	Thu Aug 10 17:13:23 2006 +0200
@@ -981,8 +981,9 @@
         event.Skip()
 
     def OnFileSelectedChanged(self, event):
-        selected = self.FileOpened.GetSelection()
+        selected = event.GetSelection()
         # At init selected = -1
+        print selected
         if selected >= 0:
         	self.Manager.ChangeCurrentNode(selected)
         	self.RefreshBufferState()
@@ -1701,9 +1702,9 @@
     def GetValues(self):
         if self.radioButton1.GetValue():
             struct = 1
+        elif self.radioButton2.GetValue():
+            struct = 3
         elif self.radioButton3.GetValue():
-            struct = 3
-        elif self.radioButton2.GetValue():
             struct = 7
         name = self.IndexName.GetValue()
         index = eval(self.Index.GetValue())