Re: can wx, Artprovider images be used as toolbar icons in wxGlade

Carsten Grohmann <[email protected]>
Newsgroups gmane.comp.python.wxglade
Message-ID <[email protected]>
Hi Dennis,

I'm sorry about my delayed anser.

Am 11.03.2015 15:04 schrieb Dennis DeBerry:
> I did google and find this link.
> 
> http://ehc.ac/p/wxglade/mailman/wxglade-general/thread/loom.20080604T025637-33%40post.gmane.org/#msg19525376
> 
> But the people that answered the question were talking about XRC and
> C++ and I really did not understand their english usage.

That's theoretical possible. Theoretically - because I haven't tested it myself.

You can use the code: tag inside bitmap paths. All after "code:" will be passed directly into the source code instead of a path / filename.

Thereby you could use something like:

code:wx.ArtProvider.GetBitMap(wx.ART_NORMAL_FILE, wx.ART_TOOLBAR)

Probably you to add some additional import statements into the "extra code" box.

HTH,
Carsten

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.