code_junkie

How to make a wx Toolbar buttons larger?

Nov 13th, 2011
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. toolbar.SetToolBitmapSize((24, 24))
  2.  
  3. wx.ArtProvider.GetBitmap(wx.ART_FILE_SAVE, wx.ART_TOOLBAR, (24, 24))
  4.  
  5. # Define the size of the icons and buttons
  6. iconSize = (24, 24)
  7.  
  8. # Set the size of the buttons
  9. toolbar.SetToolBitmapSize(iconSize)
  10.  
  11. # Add some button
  12. saveIcon = wx.ArtProvider.GetBitmap(wx.ART_FILE_SAVE, wx.ART_TOOLBAR, iconSize)
  13. toolBar.AddSimpleTool(1, saveIcon, "Save", "Save current file")
Add Comment
Please, Sign In to add comment