wxpython - wxtoolbar font size

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ghido

    #1

    wxpython - wxtoolbar font size

    Hi all i want to set wx.toolbar font size and i use this code:

    self.tb1 = wx.ToolBar(self , -1, style=wx.TB_HOR IZONTAL|
    wx.TB_TEXT)
    self.tb1.SetFon t(wx.Font(9, wx.DEFAULT, wx.NORMAL,0))
    self.SetToolBar (self.tb1)

    but i obtain nothing. Is possibile? where i wrong?
    I use wxpython 2.6.3 on ubuntu edgy
    thanks

    Ghido

  • Frank Niessink

    #2
    Re: wxpython - wxtoolbar font size

    Ghido:
    Hi all i want to set wx.toolbar font size and i use this code:
    >
    self.tb1 = wx.ToolBar(self , -1, style=wx.TB_HOR IZONTAL|
    wx.TB_TEXT)
    self.tb1.SetFon t(wx.Font(9, wx.DEFAULT, wx.NORMAL,0))
    self.SetToolBar (self.tb1)
    >
    but i obtain nothing. Is possibile? where i wrong?
    I use wxpython 2.6.3 on ubuntu edgy
    You need to call self.tb1.Realiz e(). BTW, you probably want to add some
    tools to the toolbar too. See attachment.

    Cheers, Frank

    Comment

    • Ghido

      #3
      Re: wxpython - wxtoolbar font size

      Thanks for your reply but i can't change the font of 'New' label. but
      it is a linux problem or is a wxpython problem?

      Ghido

      Comment

      Working...