Hello Frank,
Tuesday, May 10, 2005, 10:05:18 PM, you wrote:
the_shelter wrote:
I'd like to have an icon/ image on ech of my notebook tabs, i.e. like
dr. python has f.e. on it's shell/console tab ...
Anybody has a code sippet that demonstrates this?
Hi, see attachment (from Task Coach,
http://taskcoach.niessink.com/).
Cheers, Frank
THanX,
still, I cannot get it to work in my app.
No error messages but no image in my tab (3 versions I tried below):
#image list
isz = (16,16)
self.tree_ctrl_2.il = wx.ImageList(16, 16)
self.tree_ctrl_2.repview = self.tree_ctrl_1.il.Add(wx.ArtProvider_GetBitmap(wx.ART_REPORT_VIEW, wx.ART_OTHER, isz))
self.tree_ctrl_2.pdf= self.tree_ctrl_1.il.Add(wx.Bitmap("pdf.bmp"))
self.tree_ctrl_2.pdfgrey= self.tree_ctrl_1.il.Add(wx.Bitmap("pdf_grey.bmp"))
self.tree_ctrl_2.happy = self.tree_ctrl_1.il.Add(wx.Bitmap("happy.bmp"))
self.tree_ctrl_2.sad = self.tree_ctrl_1.il.Add(wx.Bitmap("sad.bmp"))
self.tree_ctrl_2.SetImageList(self.tree_ctrl_2.il, wx.IMAGE_LIST_SMALL)
# 3 versions
self.notebook_4.AddPage(self.panel_1,"panel text",1,imageId=4)
self.notebook_4.AddPage(self.panel_1,"panel text2",0,4)
self.notebook_4.AddPage(self.panel_1,"panel text3",0,self.tree_ctrl_2.pdf)
What am I missing??
ยทยทยท
--
Best regards,
the_shelter mailto:pdftex@the-shelter.de