method that returns the current wxApp instance?

I could have sworn there was a method or function to return the current running wxApp instance, but I can't seem to find it. The closest thing I've found is wx.GetTopLevelParent() which is a function I can use to find the top level window of any arbitrary control, regardless of the level of window nesting. If someone could refresh my memory it would be appreciated. I feel like I have my dunce cap on <wink>

ka

I am not up to speed on 2.5 yet, but in 2.4 it was wxGetApp().

Donnal Walter
Arkansas Children's Hospital

···

--- Kevin Altis <altis@semi-retired.com> wrote:

I could have sworn there was a method or function to return the
current running wxApp instance, but I can't seem to find it.

or wx.GetApp() if you use the wx namespace, which I think is the default in
2.5

> I could have sworn there was a method or function to return the
> current running wxApp instance, but I can't seem to find it.

I am not up to speed on 2.5 yet, but in 2.4 it was wxGetApp().

Donnal Walter
Arkansas Children's Hospital

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

- --
  UC

- --
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417

···

On Sunday 02 May 2004 12:22 pm, Donnal Walter wrote:

--- Kevin Altis <altis@semi-retired.com> wrote:

Thanks, apparently I was just blind, it was sitting right in front of me. And yes it is wx.GetApp() with the wx namespace.

ka

···

On May 2, 2004, at 12:22 PM, Donnal Walter wrote:

--- Kevin Altis <altis@semi-retired.com> wrote:

I could have sworn there was a method or function to return the
current running wxApp instance, but I can't seem to find it.

I am not up to speed on 2.5 yet, but in 2.4 it was wxGetApp().