We need to show a custom about box in our application (as it has to include some specialized fields and buttons). We can do this easily with a wx.Dialog.
We’d like to show the application icon on this dialog. How can we get this to appear? (We’re already successfully associating the icon with the app; it shows up in the wx.AboutBox about box, for example)
Thanks!
Try as part of creating the dialog, calling self.SetIcon(your_icon).
Gadget/Steve
···
On 04/06/2012 9:22 AM, Joel Burton wrote:
We need to show a custom about box in our application (as it has to
include some specialized fields and buttons). We can do this easily
with a wx.Dialog.
We'd like to show the application icon on this dialog. How can we get
this to appear? (We're already successfully associating the icon with
the app; it shows up in the wx.AboutBox about box, for example)
Thanks!
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en
Part of our question is “how do we refer to the application icon”? wxPython already has a copy (obviously, since it shows it in the system-build about box). How do we refer to that?
···
On Monday, June 4, 2012 1:22:17 AM UTC-7, Joel Burton wrote:
We need to show a custom about box in our application (as it has to include some specialized fields and buttons). We can do this easily with a wx.Dialog.
We’d like to show the application icon on this dialog. How can we get this to appear? (We’re already successfully associating the icon with the app; it shows up in the wx.AboutBox about box, for example)
Thanks!
wx.GetApp().GetTopWindow().GetIcon() should return a reference to
the default application icon.
Gadget/Steve
···
wxPython-users+unsubscribe@googlegroups.com
http://groups.google.com/group/wxPython-users?hl=en