Run wxPython app remotely under XWindows
half.italian at gmail.com
Sat Mar 1 08:17:11 CET 2008
On Feb 29, 8:19 am, Mike Driscoll <kyoso... at gmail.com> wrote:
> On Feb 28, 7:49 pm, Sean DiZazzo <half.ital... at gmail.com> wrote:
> > On Feb 28, 5:26 pm, Sean DiZazzo <half.ital... at gmail.com> wrote:
> > > On Feb 28, 3:50 pm, Bjoern Schliessmann <usenet-
> > > mail-0306.20.chr0n... at spamgourmet.com> wrote:
> > > > Sean DiZazzo wrote:
> > > > > Is there something special you have to do to get a wxPython app to
> > > > > run remotely under xwindows? My Tkinter apps always automatically
> > > > > work that way, so I was surprised to even be confronted with this
> > > > > problem.
> > > > Could you please provide more detail? My wxPython apps run perfectly
> > > > remotely in the X Window System like this:
> > > > $ ssh some-other-machine
> > > > $ DISPLAY=:0 ./my_app.py
> > > Should wxPython apps work this way? Do you think it's something with
> > > the server?
> > Just to close the loop I think think this is a problem with the ssh
> > server.
> > ~Sean
> If it's not the server, then please post the issue to the wxPython
> list. They can probably help:
To follow up with a solution. I learned that the default install of
wxPython, and Tkinter for that matter is compiled to run under Aqua as
opposed to X11. It won't run remotely, as I first posted, compiled
this way. To get Tkinter to work under X11 you simply need to
configure and install a version of python for the X11 environment.
The default Mac install (Leopard) and the MacPython distro are
configured to run under Aqua. Instead of compiling my own, I found
that the default Fink install is configured to run under X11, so if
you install it, and run that version of Python, you can run Tkinter
apps remotely from a Mac box.
wxPython is a bit more complicated. The idea is the same, but the
process is much more complicated to get it working. You need to
compile wxPython under GTK2, which I found is not well supported for
Mac. I followed the instructions at this site: http://wiki.wxpython.org/wxGTK_on_Mac_OSX
to get it working. Even with the instructions, I had to finagle a few
things to get it to work properly. But it does work! My first
successful install was on Tiger, but I'm trying an install on Leopard
as we speak.
Thanks to Cody Precord for the instructions. I would have never been
able to do it without. Now my users will have a prettier GUI!
More information about the Python-list