Run wxPython app remotely under XWindows

S

Sean DiZazzo

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.

~Sean
 
G

Grant Edwards

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.

AFAIK, running them remotely works for the sufficiently patient
(I don't actually know abody _that_ patient). The GTK widget
set is a horrible bandwidth hog and in my experience, GTK apps
are unusable over anything slower than a local 100BaseT
Ethernet link.

What sort of failure are you seeing?
 
B

Bjoern Schliessmann

Sean said:
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

Regards,


Björn
 
S

Sean DiZazzo

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

huh...I am logging into the remote machine with "ssh -X" (actually
with '-Y' in this case because its a mac), then I execute the program
ie. `./test.py' Under Tkinter, this would send the app to display on
the ssh client. Under wxPython it opens it on the ssh server.

Maybe I am missing something obvious, but if I run 'xcalc' from the
same shell, the app opens where I expect it...ssh forwarding seems to
be working.

~Sean
 
S

Sean DiZazzo

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?
 
S

Sean DiZazzo

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
 
S

Sean DiZazzo

If it's not the server, then please post the issue to the wxPython
list. They can probably help:

http://wxpython.org/maillist.php

Mike

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!

~Sean
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,522
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top