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!

Recommended Answers

All 3 Replies

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!!!!

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()
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.