ImageResource size

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

ImageResource size

Brennan Williams
Is there a way to specify the image size when using ImageResource?

I'm building a menu bar using...

    menubar = MenuBar(
    Menu(
        Menu(
            Action(name='Project',action='file_new_project',
            image = ImageResource(
"images/project",search_path=[IMAGE_LOCATION]),
        ),
        ....

my images are 32x32 which is ok for my tool bar but for the menus this
is too big.

In my tree editor I've used...

    self.project_tree_editor=TreeEditor(
      icon_size=(16,16),
          nodes=[
        TreeNode(
        node_for=[ RZProject],
        ....

Is there something similar for ImageResource and MenuBar or will I need
to create a set of 16x16 png image files?

Thanks

Brennan


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