By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,319 Members | 2,361 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,319 IT Pros & Developers. It's quick & easy.

Run wxPython app remotely under XWindows

P: n/a
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
Feb 28 '08 #1
Share this Question
Share on Google+
8 Replies


P: n/a
On 2008-02-28, Sean DiZazzo <ha**********@gmail.comwrote:
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?

--
Grant Edwards grante Yow! Thousands of days of
at civilians... have produced
visi.com a... feeling for the
aesthetic modules --
Feb 28 '08 #2

P: n/a
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

Regards,
Björn

--
BOFH excuse #230:

Lusers learning curve appears to be fractal

Feb 28 '08 #3

P: n/a
On Feb 28, 3:50*pm, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n...@spamgourmet.comwrote:
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
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
Feb 29 '08 #4

P: n/a
On Feb 28, 3:50*pm, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n...@spamgourmet.comwrote:
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?

Feb 29 '08 #5

P: n/a
On Feb 28, 5:26*pm, Sean DiZazzo <half.ital...@gmail.comwrote:
On Feb 28, 3:50*pm, Bjoern Schliessmann <usenet-

mail-0306.20.chr0n...@spamgourmet.comwrote:
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
Feb 29 '08 #6

P: n/a
Sean DiZazzo wrote:
On Feb 28, 3:50*pm, Bjoern Schliessmann <usenet-
>$ ssh some-other-machine
$ DISPLAY=:0 ./my_app.py

Should wxPython apps work this way?
I think so; at least it works for me.
Do you think it's something with the server?
I have no idea.

Regards,
Björn

--
BOFH excuse #325:

Your processor does not develop enough heat.

Feb 29 '08 #7

P: n/a
On Feb 28, 7:49 pm, Sean DiZazzo <half.ital...@gmail.comwrote:
On Feb 28, 5:26 pm, Sean DiZazzo <half.ital...@gmail.comwrote:
On Feb 28, 3:50 pm, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n...@spamgourmet.comwrote:
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:

http://wxpython.org/maillist.php

Mike
Feb 29 '08 #8

P: n/a
On Feb 29, 8:19*am, Mike Driscoll <kyoso...@gmail.comwrote:
On Feb 28, 7:49 pm, Sean DiZazzo <half.ital...@gmail.comwrote:
On Feb 28, 5:26 pm, Sean DiZazzo <half.ital...@gmail.comwrote:
On Feb 28, 3:50 pm, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n...@spamgourmet.comwrote:
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:

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
Mar 1 '08 #9

This discussion thread is closed

Replies have been disabled for this discussion.