I do Get errors with combo box selections. here is my combo selection attach to a button.
def Btn9(self, event): # wxGlade: Appli.<event_handler>
if self.combo_box_4.GetValue()=="1":
numglobals.frame_12.Show()
elif self.combo_box_4.GetValue()=="2":
numglobals.frame_13.Show()
elif self.combo_box_4.GetValue()=="3":
numglobals.frame_14.Show()
elif self.combo_box_4.GetValue()=="4":
numglobals.frame_15.Show()
elif self.combo_box_4.GetValue()=="5":
numglobals.frame_16.Show()
elif self.combo_box_4.GetValue()=="6":
numglobals.frame_17.Show()
elif self.combo_box_4.GetValue()=="7":
numglobals.frame_18.Show()
elif self.combo_box_4.GetValue()=="8":
numglobals.frame_19.Show()
elif self.combo_box_4.GetValue()=="9":
numglobals.frame_20.Show()
elif self.combo_box_4.GetValue()=="10":
numglobals.frame_21.Show()
GUI is perfectly works for the 1st selection. but if i did a same selection twice its not working. it gives an exucution error. it says
isukoon@isukoon-desktop:~/Desktop/Numeric$ python main.py
Event handler `Combo4' not implemented
Traceback (most recent call last):
File "/home/isukoon/Desktop/Numeric/numlib/Appli.py", line 190, in Btn9
numglobals.frame_19.Show()
File "/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14564, in __getattr__
raise PyDeadObjectError(self.attrStr % self._name)
wx._core.PyDeadObjectError: The C++ part of the Table8 object has been deleted, attribute access no longer allowed.
Will someone help me to fix it.