HELLO!
I am working with wxPython libraries .... I used the library 'Notebook' to create 3 tabs .... How do I put in one of these tabs a toolbar?
how can I do??
Help!
thanks!
1988asso
0
Newbie Poster
Recommended Answers
Jump to Postimport wx class HorizontalToolbar(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title, size=(240, 200)) toolbar = self.CreateToolBar(wx.TB_HORIZONTAL) toolbar.AddLabelTool(wx.ID_ANY, '', wx.Bitmap('1ico.ico')) toolbar.AddLabelTool(wx.ID_ANY, '', wx.Bitmap('2ico.ico')) toolbar.Realize() self.Centre() self.Show(True) def OnExit(self, event): self.Close() app = wx.App() HorizontalToolbar(None, -1, 'horizontal toolbar') app.MainLoop()
All 3 Replies
1988asso
0
Newbie Poster
snippsat
661
Master Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.