Is there any way to get at the images used by wxMessageDialog? In
particular, I'd like to get at the dialog displayed when wxWARNING_ICON is
used as a flag to the dialog.
Thanks,
-tim
Is there any way to get at the images used by wxMessageDialog? In
particular, I'd like to get at the dialog displayed when wxWARNING_ICON is
used as a flag to the dialog.
Thanks,
-tim
Is there any way to get at the images used by wxMessageDialog? In
particular, I'd like to get at the dialog displayed when wxWARNING_ICON is
used as a flag to the dialog.
Try wxGetApp().GetStdIcon(wxICON_WARNING)
Be warned, however, that this will change in 2.3.3.
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!
> Is there any way to get at the images used by wxMessageDialog? In
> particular, I'd like to get at the dialog displayed when wxWARNING_ICON
is
> used as a flag to the dialog.
Try wxGetApp().GetStdIcon(wxICON_WARNING)
Be warned, however, that this will change in 2.3.3.
Thanks Robin. Given the warning, I think I'll keep using the kludgy version
that I'm using now and use someting more elegant when 2.3.3 comes out
(assuming there's a way to get at the relevant function in that version).
The reason I was asking is that I was I was trying to clean up the attached
code. This is in the same spirit as Chris Fama's ErrorDialogs.py, but with a
look more like that of a standard error dialog and with considerably fewer
features. Anyone is welcome to use it however they wish. Running "python
ErrorDialog.py" from the command line should demonstrate the dialog.
-tim
ErrorDialog.py (6.28 KB)
From: "Robin Dunn" <robin@alldunn.com>
Tim Hochberg wrote:
Is there any way to get at the images used by wxMessageDialog? In
particular, I'd like to get at the dialog displayed when
wxWARNING_ICON is used as a flag to the dialog.
So, do you want access to the dialog or the images? If the latter, you
will find wxArtProvider from 2.3.3+ interesting (don't know if it
already have made it into wxPython, though).
HTH,
VS
Tim Hochberg wrote:
> Is there any way to get at the images used by wxMessageDialog? In
> particular, I'd like to get at the dialog displayed when
> wxWARNING_ICON is used as a flag to the dialog.So, do you want access to the dialog or the images? If the latter, you
will find wxArtProvider from 2.3.3+ interesting (don't know if it
already have made it into wxPython, though).
Not yet. It's near the top of my todo list though.
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!