A question about wx.App()

hello, everybody!

I am reading wfm_rcv_gui.py (usrp_wfm_rcv.py), but there are something
confusing me!

1, there should be a class wx.App(),from which stdapp is derived! But
where can I find it, what is the pathof it? i have checked out the
path:usr/lib/python2.5/sitepackages/wx-2.8-gtk2-unicode/wx, but there is
nofile named App()! Where is it?

3, How can i find the entire code of Mainloop(), a method of class
App()???

Thank you!!!

Bill

  ____________________________________________________________________________________

Never miss a thing. Make Yahoo your home page.

On Mar 24, 2008, at 11:02 AM, Bill S. wrote:

1, there should be a class wx.App(), from which stdapp is derived!
But where can I find it, what is the path of it? i have checked out
the path: usr/lib/python2.5/sitepackages/wx-2.8-gtk2-unicode/wx, but
there is no file named App()! Where is it?
3, How can i find the entire code of Mainloop(), a method of class
App()???

You need to browse the original source code to wxWidgets and wxPython
for those. The stuff installed where you mention is either PY code or
SO libraries (make from compiled C++). You can glean a little from
code fragments in (I think; starting from where you left off):
_code.py and code.py … but these don’t really help a lot.
Looking at the source codes helps a bit more (I recently did exactly
what you are trying to do). You can find the original C++ code to
wx.App in the wxWidgets source.

On Mar 25, 2008, at 1:13 AM, Bill S. wrote:

Oops! Could u tell me the location of core.py file? I just found
out the _core.py file, but could not find the core.py. Thank you
again!!!

I’m glad you caught my error … “_core” instead of “_code” :wink:

_core.py and core.so shuld be in the same directory (in your case, /
usr/lib/python2.5/sitepackages/wx-2.8-gtk2-unicode/wx ). The ‘so’ is
a shared library, created by wxPython, and is part of a SWIG interface
into wxWidgets (which is a C++ compiled library and includes).

On Mar 25, 2008, at 1:11 AM, Bill S. wrote:

Thank u for your reply!!! I have searched all of my compute, but
could not find out the wxWidgets! Could u tell me what its path is?
Where is it? I really want to look at the C++ code! Thank u!!!

In order to access those codes, you’ll need the original source
tarball, extract it, and find those files. Depending on your OS-type,
this can be done as part of the code install - or you might need to
download the tarball (e.g., from < http://www.wxwidgets.org/downloads/

), extract it, and then start searching around in it.

For example, if you’re running on MacOS X and using MacPorts, you can
find the original source via:

sudo port -f patch wxWidgets
pushd port dir wxWidgets/work/wxWidgets*

and then search around from there (e.g. “grep -inr ‘wx.App’ .”). I
would guess on most Linux’es, you’re better off just downloading the
original source tarball and working with it … just makes sure you
find the correct version of wxWidgets :wink: - MLD

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs