473,498 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Run wxPython app remotely under XWindows

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
8 2635
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1147
by: Alexander DEJANOVSKI | last post by:
Retic 0.6 comes with 3 new major features : - Retic Administrator : a cross-platform (wxPython 2.4) GUI for creating/modifying adaptors and launching them. (replaces the buggy win32 Retic...
1
1366
by: Jay Davis | last post by:
We have an application in wxPython that works quite well on our local computers, but we want people to be able to run the program over the internet. One way that would work is to use an Xwindows...
7
11882
by: SeeBelow | last post by:
Do many people think that wxPython should replace Tkinter? Is this likely to happen? I ask because I have just started learning Tkinter, and I wonder if I should abandon it in favor of...
25
3317
by: BJörn Lindqvist | last post by:
See: http://www.wxpython.org/quotes.php. especially: "wxPython is the best and most mature cross-platform GUI toolkit, given a number of constraints. The only reason wxPython isn't the standard...
1
2546
by: timothy.williams | last post by:
I'm trying to install wxPython 2.5.3.1 using Python 2.3.2 on a Fedora 2 machine. I have python in a non-standard place, but I'm using --prefix with the configure script to point to where I have...
25
4250
by: TPJ | last post by:
GUI's etc: PyGtk on Windows "(...) So if someone develops mainly for X and just wants to make sure that it is not impossible to run on Windows, you can use PyGTK. (...)", July 2nd, 1999 pyGTK...
217
8933
by: gyromagnetic | last post by:
The following url points to an article written by Damian Conway entitled "Ten Essential Development Practices": http://www.perl.com/pub/a/2005/07/14/bestpractices.html Althought the article has...
0
1645
by: Robin Dunn | last post by:
Announcing ---------- The 2.6.3.0 release of wxPython is now available for download at http://wxpython.org/download.php. There have been many enhancements and fixes implemented in this...
2
3836
by: zensunni | last post by:
I've been working with ncurses for my user output. But, I've reached a limitation. I'd like to resize the window, but ncurses doesn't have the power to do that. It has the option, but I think gnome...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7002
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7165
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5462
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4590
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
291
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.