XRC: using wxPython's icons

Couldn't resist, just one more question: is it "safe" to use the icons that already come with wxPython (i.e., when in XRCed, you can choose these instead of giving a path to your own). I ask because I assume that anyone with wxPython also has these graphics, but is it possible that they could be removed from wxPython one day, thus breaking the application that uses them?

Thanks.

John Salerno wrote:

Couldn't resist, just one more question: is it "safe" to use the icons that already come with wxPython (i.e., when in XRCed, you can choose these instead of giving a path to your own). I ask because I assume that anyone with wxPython also has these graphics, but is it possible that they could be removed from wxPython one day, thus breaking the application that uses them?

The only ones you can count on are those that come from the art provider.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

John Salerno wrote:

Couldn't resist, just one more question: is it "safe" to use the icons that already come with wxPython (i.e., when in XRCed, you can choose these instead of giving a path to your own). I ask because I assume that anyone with wxPython also has these graphics, but is it possible that they could be removed from wxPython one day, thus breaking the application that uses them?

The only ones you can count on are those that come from the art provider.

I'm not exactly sure where these are coming from, because I can't find them in the wxPython folders, but in XRCed, if you choose a toolbar button, then on the right side under the tool properties you can choose "art" under the "bitmap" property and there are various constants listed, such as wxART_NEW_DIR, etc. Are these the ones you are referring to?

John Salerno wrote:

Robin Dunn wrote:

John Salerno wrote:

Couldn't resist, just one more question: is it "safe" to use the icons that already come with wxPython (i.e., when in XRCed, you can choose these instead of giving a path to your own). I ask because I assume that anyone with wxPython also has these graphics, but is it possible that they could be removed from wxPython one day, thus breaking the application that uses them?

The only ones you can count on are those that come from the art provider.

I'm not exactly sure where these are coming from, because I can't find them in the wxPython folders,

Because they are not there. They're embedded in the wx DLL or shared library. You get at them with the wx.ArtProvider class.

but in XRCed, if you choose a toolbar button, then on the right side under the tool properties you can choose "art" under the "bitmap" property and there are various constants listed, such as wxART_NEW_DIR, etc. Are these the ones you are referring to?

Yes.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

John Salerno wrote:

Robin Dunn wrote:

John Salerno wrote:

Couldn't resist, just one more question: is it "safe" to use the icons that already come with wxPython (i.e., when in XRCed, you can choose these instead of giving a path to your own). I ask because I assume that anyone with wxPython also has these graphics, but is it possible that they could be removed from wxPython one day, thus breaking the application that uses them?

The only ones you can count on are those that come from the art provider.

I'm not exactly sure where these are coming from, because I can't find them in the wxPython folders,

Because they are not there. They're embedded in the wx DLL or shared library. You get at them with the wx.ArtProvider class.

but in XRCed, if you choose a toolbar button, then on the right side under the tool properties you can choose "art" under the "bitmap" property and there are various constants listed, such as wxART_NEW_DIR, etc. Are these the ones you are referring to?

Yes.

Thanks!