[wxPython-users] determine App instance
Christopher Barker
Chris.Barker at noaa.gov
Sat Dec 15 10:16:39 PST 2007
Mark Erbaugh wrote:
> Is there a built-in mechanism for a wx.Frame to determine the wx.App
> instance?
yes --
TheApp = wx.GetApp()
And you can use it anywhere -- it's in the wx module, not a Frame method.
> I'm considering using the wx.App instance to store global data,
> particularly some bitmaps for wx.BitmapButton's.
Are those same bitmaps used in multiple places? If not, I'd store them
where they are used, but if so, then that's a fine solution.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
More information about the wxpython-users
mailing list