Re: Toolbar Iconsize

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Toolbar Iconsize

bryce hendrix-2
I've never had much luck with the toolbar, especially regarding icon sizes. That was one of the main reasons I wrote the SVGButtonEditor. To create a toolbar, I put all of the buttons in an HGroup. If you want to try that approach, there is an example in Enable/examples/savage.

Stephan Gerhard <[hidden email]> wrote:

>Hi!
>
>I would like to make icons bigger (32,32) in the toolbar of my View, but
>they stay (16,16). I tried it like in Mayavi:
>
>
>    # Toolbar actions
>    actions = List(Either(Action, Separator))
>
>    def _toolbar_default(self):
>        toolbar = ToolBar(*self.actions)
>        toolbar.image_size = (32, 32)
>        toolbar.show_tool_names = True
>        toolbar.show_divider = False
>        return toolbar
>
>...
>    def default_traits_view(self):
>        view = View(Item(...),
>    ....
>                    toolbar=self.toolbar,
>    ....)
>
>Also, if I set show_tool_names to True, it has no influence. Can anyone
>help?
>
>Thanks,
>Stephan
>
>_______________________________________________
>Enthought-Dev mailing list
>[hidden email]
>https://mail.enthought.com/mailman/listinfo/enthought-dev

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev