I have a notebook and I am adding a new page with
def AddNewPage(self,page,title):
play_id = wx.Image(Icons.play, wx.BITMAP_TYPE_PNG).ConvertToBitmap()
index = self.noteBook.GetPageCount()
self.noteBook.InsertPage(index, page, title, 1, play_id)
Once that page is created user will add some input..and after that I want to
remove the icon.
def RemoveIcon(self,index):
self.noteBook.SetPageBitmap(page_idx=index,bitmap=wx.EmptyBitmap(1,1))
It work most of the time but sometime it gives following error and
application abort:
Xlib: unexpected async reply (sequence 0x6cc8)
--
View this message in context:
http://wxpython-users.1045709.n5.nabble.com/Application-abort-while-icon-is-removed-from-Notebook-ctrl-tp5724038.html
Sent from the wxPython-users mailing list archive at Nabble.com.