[Fwd: images in a menubar]

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Fwd: images in a menubar]

Brennan Williams
Anyone have an opinion/comment on this? I still haven't worked out how
to assign an image to a submenu in a MenuBar, only to the individual
Action's.

Brennan


-------- Original Message --------
Subject: [Enthought-Dev] images in a menubar
Date: Thu, 08 Apr 2010 16:04:46 +1200
From: Brennan Williams <[hidden email]>
Reply-To: [hidden email]
Organisation: Visualization Software Manager, Geo Visual Systems.
To: [hidden email]



I've added images to my Actions that are in my Menu's in a MenuBar but I
don't seem to be able to add an image beside the name of each sub menu...

So in...

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

I get my project image beside the action name 'Project'

but I get a blank beside my submenu name 'New'

see attached screenshot

Any ideas?

Brennan







_______________________________________________
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

menunameandimage.png (8K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Fwd: images in a menubar]

bryce hendrix-2
On 04/18/2010 08:17 PM, Brennan Williams wrote:
Anyone have an opinion/comment on this? I still haven't worked out how to assign an image to a submenu in a MenuBar, only to the individual Action's.

Looking briefly at the wx docs, I don't think its possible.

Bryce


Brennan


-------- Original Message --------
Subject:     [Enthought-Dev] images in a menubar
Date:     Thu, 08 Apr 2010 16:04:46 +1200
From:     Brennan Williams [hidden email]
Reply-To:     [hidden email]
Organisation:     Visualization Software Manager, Geo Visual Systems.
To:     [hidden email]



I've added images to my Actions that are in my Menu's in a MenuBar but I don't seem to be able to add an image beside the name of each sub menu...

So in...

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

I get my project image beside the action name 'Project'

but I get a blank beside my submenu name 'New'

see attached screenshot

Any ideas?

Brennan






_______________________________________________ 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