[wxPython] new to wxPython few of questions

I have a few questions about wxPython. I use jython to make my GUI apps with
swing but I have noticed that this can be quite slow sometime and am hopy
that wxPython will prove a better solution.
1) Can I distribute a wxPython app to any other mac user or lunix or windows
(or etc...) using the freeze utility wit python?
2) how do I get/install wxPython for me on MacOS X
3) is wxPython going to be fully aquified ( i.e.: I get to load stuff in the
menu that appears with a right click, spawn back the window if the user
closes it etc... ) while keeping the same code for windows or linux?
4) is there any memmory overhead? speed? (jython takes quite a while to load
a frame)

well that's it for now

best regards Stephane

I have a few questions about wxPython. I use jython to make my GUI apps with
swing but I have noticed that this can be quite slow sometime and am hopy
that wxPython will prove a better solution.
1) Can I distribute a wxPython app to any other mac user or lunix or windows
(or etc...) using the freeze utility wit python?

I haven't used freeze but I've used py2exe (windows) and the McMillan Installer (Linux, Solaris); they work very well for those platforms.

2) how do I get/install wxPython for me on MacOS X
3) is wxPython going to be fully aquified ( i.e.: I get to load stuff in the
menu that appears with a right click, spawn back the window if the user
closes it etc... ) while keeping the same code for windows or linux?

I'm sure someone else knows about this, but not me!

4) is there any memmory overhead? speed? (jython takes quite a while to load
a frame)

Everything has a memory overhead :wink:
But seriously, on the platforms I use wxPython on (win32, solaris, linux) I've found the speed to be very good. Not as fast as native C/C++
alone, but not noticably/significantly different.

HTH
Ellers

···

7/24/02 1:30:42 PM, "Stephane Jolicoeur" <s.jol@jol-tech.net> wrote:

Stephane Jolicoeur wrote:

1) Can I distribute a wxPython app to any other mac user or lunix or windows
(or etc...) using the freeze utility wit python?

I haven't seen anyone use freeze for a long time. On Windows, people use
Py2exe or McMillian's installer. On *nix, you can use Installer, or just
a tarball, *nix people are generally more open to more complex installs.
On OS-X, you are stuck with distributing Python, wxPython and your app
in one or more installers. However, it is likely that something like the
old MacPython BuildApplication applet will be made for OS-X. There are a
few technical difficulties that have yet to be worked out. Check out the
MacPython mailing list for more info.
(Pythonmac-SIG Info Page)

2) how do I get/install wxPython for me on MacOS X

Your best bet is the wxpython sourceforge page. Robin has built
installers for wxMacPython and the version of Mach-O python that is
being used for development.
(wxPython - Browse Files at SourceForge.net)

3) is wxPython going to be fully aquified ( i.e.: I get to load stuff in the
menu that appears with a right click, spawn back the window if the user
closes it etc... ) while keeping the same code for windows or linux?

hmm. I'm a little unclear on those details, but I'm going to guess
probably not. As a rule, wxPython supports all the features that
wxWindows supports, and those features tend to be the least common
denominator ones, plus some nice high level widgets, and some widgets
inspired by ones found in Win32 or GTK. For a nifty OS-X only feature to
be implemented, it would have to be emulated on the other platforms,
which is a fair bit of work. OS-X is pretty new, so it has yet to
influence wxWindows much. Also, wxMac is Carbon based, and it certainly
won't support any features that Carbon does not.

4) is there any memmory overhead?

With modern memory prices, and OS-X's smart memory management (finally!)
memory for wxPython is not really an issue.

speed? (jython takes quite a while to load
a frame)

wxPython tends to a while to start up at the beginning, because it is
loading a BIG library. After that, it's pretty darn snappy.

well that's it for now

Another issue you should be aware of is that wxMacPython is still under
development, and still as some bugs. Some of those are bugs in C++ wxMac
as well. IF you expect to use it for production code, be prepared to
wait for fixes, or to contribute those fixes yourself. It definitely is
not as ready for use as on Win32 or *nix/GTK.

-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

Chris.Barker@noaa.gov

>2) how do I get/install wxPython for me on MacOS X

THis is a little out of date but should help:
http://wiki.wxpython.org/index.cgi/wxPythonMac

>3) is wxPython going to be fully aquified ( i.e.: I get to load stuff in

the

>menu that appears with a right click, spawn back the window if the user
>closes it etc... ) while keeping the same code for windows or linux?

If the wxMac C++ lib becomes "fully aquified" then wxPythonMac will too. So
perhaps asking this question on the wx-users or wx-dev lists.

>4) is there any memmory overhead? speed? (jython takes quite a while to

load

>a frame)

wxPython does have overhead but in my (somewhat limited) expreience it is
probably a fifth (or less) than that of a typical Swing app. Once the app
has started then for most types of things there is not much noticable speed
difference from a C++ app.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!