By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,097 Members | 1,529 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,097 IT Pros & Developers. It's quick & easy.

wxpython - wxtoolbar font size

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

self.tb1 = wx.ToolBar(self, -1, style=wx.TB_HORIZONTAL|
wx.TB_TEXT)
self.tb1.SetFont(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

Nov 14 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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_HORIZONTAL|
wx.TB_TEXT)
self.tb1.SetFont(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.Realize(). BTW, you probably want to add some
tools to the toolbar too. See attachment.

Cheers, Frank

Nov 14 '06 #2

P: n/a
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

Nov 15 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.