PDA

View Full Version : Question about wxPython



Volt9000
May 31st, 2009, 07:18 PM
I've just started learning wxPython, and ran into something which has be a bit confused.

In code, I'm writing things like wx.Frame, wx.App, wx.Menu, etc. But when I go to the online docs and check out the class reference, I see wxFrame, wxApp, wxMenu, etc.

I'm assuming that wx.Frame = wxFrame, but why are the class names different? I know that the wx. prefix is referring to the namespace called "wx" and the class itself is called "Frame", so why then do the docs refer to the class name as "wxFrame"?

crdlb
May 31st, 2009, 07:57 PM
You've probably looking at the documentation for the C++ api, which uses C-style namespace prefixes.

Volt9000
June 1st, 2009, 12:57 AM
Ach, nevermind-- crdlb is right.

The wxPython docs site (http://www.wxpython.org/onlinedocs.php) just links directly to the wxWidgets website (http://docs.wxwidgets.org/stable/wx_classref.html).