0

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!

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by vegaseat
0

my problem is precisely to create a panel with a toolbar inside .... I can not do this thing .... can someone help me and write a few lines of code?
help!!!!

0
import 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()

Edited by snippsat: n/a

Attachments
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.