Hi Patrick, Robin and all
py 2.2.1, wxpy 2.4.0.1, win98
The new wx package introduces a big change.
I read all the docs (well written) I could find about the
new wx package, but there are still a lot of points I would
like to be clarified.
I appreciate the effort to put some order in my/our wxPython
directory. The entropy of this subdirectory is far for
beeing zero!
1) Should we consider the new wx package as the de facto new
wxPython package, or is it only a transitional package?
There has been a major discussion a couple of weeks back. To my understanding
the majority agreed that for future releases the wx package should be the
standard. However the old way of doing things is still supported at least
until a major revision change. It's not only the demo that has to be
considered. There is a bunch of applications out there relying on the old way
of importing and names.
So if you write something new switch to the new
import wx
style. You can get the wx package from CVS and it works nicely with 2.4.0.xx
2) Will it be part of the next 2.4.1 release?
I think so
3) If question 2) is true, I assume the complete demo should
be updated! To be consistent, all the py applications in
the wxPython dir should be modified. Will this be done?
Do you volunteer to do the conversion ? I guess Robin will be very happy 
4) I have more concerns about the documention. Will the
wx.chm file desappear and be replaced by the epydoc? I find
the .chm file far superior, specially for searching.
The "what" file ? Ok, I guess this is the windows way of things. Can't answer
that question.
5) About epydoc, I will be nice if we can get the complete
doc (all files) in a zip file, so that we can use this doc
off line.
6) How may I test the wx package with wxPython 2.4.0.n?
Download the wx package from CVS (or search the mailing list. I think Patrick
made it available as zip file somewhere)
Put the wx folder into your site-packages directory.
Use "import wx" style. BTW: What I figured out - it won't work pretty well if
you mix "import wx" and "from wxPython import *" styles. At least it didn't
for me. I noted that when I switched my latest app from old to new. I
certainly missed the one or other module and got pretty weird errors.
7) Speed? This will introduce a speed penalty. If you import
the wx module only once, it is ok. A large wxPython
application may contain hundreds modules, each containing a
imprt wx.
Hmm - I'd say the penalty is higher with importing everything into the
namespace. But anyways - nice to see someone cares about speed and
ressources. Microsoft would just recommend buying a new computer :-))
8) Using the same logic, I may rewrite all the wx classes,
methods.. and replace wx**** by jm****.
To what avail ?
9) I do not remember having seen people complaining about a
from wxPython.wx import * problem.
Nope. It certainly works. However it pollutes the namespace incredibly and to
my understanding import * isn't very "pythonic". Most python packages use the
module type import.
10) Finally, what is the opinion of the other users?
I like it. The code looks much cleaner.
UC
···
On Tuesday 27 May 2003 10:49 pm, Jean-Michel Fauth wrote:
--
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