I am able to crash python every time I run the project I am working on.
(running on WinXP pro, python 2.4.3 and wxpython 2.6.3.3)
It seems to happen when I run the following code:
def OnChangeState(self,event):
print "OnChangeState"
(frame,sessionstate,queue)=event.data
(parent,label,uibase,ShowElements,Events)=frame.params
for i in range(self.frame.nb.GetPageCount()):
if self.frame.nb.GetPage(i)==frame:
#print "Updating page #:%i"%i
self.frame.nb.DeletePage(i)
window=self.frame.nb.makeTabPanel(label,uibase,sessionstate,ShowElements,Events)
self.frame.nb.InsertPage(i,window, label)
self.frame.nb.SetSelection(i)
queue.put(window)
to delete a notebook tab filled with XRC data and replace it with another.
Can someone please tell me what I am doing wrong?
best regards,
Paul Sijben
···
--
Paul Sijben tel: +31334566488
Eemvalley Systems & Technology fax: +31334557523
the Netherlands http://eemvalley.com