473,749 Members | 2,350 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 2650
On 2008-02-28, Sean DiZazzo <ha**********@g mail.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.c omwrote:
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.c omwrote:
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...@g mail.comwrote:
On Feb 28, 3:50*pm, Bjoern Schliessmann <usenet-

mail-0306.20.chr0n.. .@spamgourmet.c omwrote:
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...@g mail.comwrote:
On Feb 28, 5:26 pm, Sean DiZazzo <half.ital...@g mail.comwrote:
On Feb 28, 3:50 pm, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n.. .@spamgourmet.c omwrote:
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...@g mail.comwrote:
On Feb 28, 5:26 pm, Sean DiZazzo <half.ital...@g mail.comwrote:
On Feb 28, 3:50 pm, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n.. .@spamgourmet.c omwrote:
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
1165
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 Designer) - an XMLRPC server. Start it on a machine and after, launch adaptors on it remotely ( Retic Administrator uses it to launch adaptors on distant servers) - Adaptors can be launched with parameter files, in order to execute one adaptor with...
1
1379
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 server and just have people connect to the program on our local host, but we would like to work in an internet browser because not everyone has an Xserver. Is there any reasonable way to run a wxPython app inside a browser?
7
11907
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 wxPython. Mitchell Timin -- "Many are stubborn in pursuit of the path they have chosen, few in
25
3355
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 Python GUI toolkit is that Tkinter was there first." - Guido van Rossum Guess, that answers my question, but isn't "Tkinter was there first" a very bad answer? :) It is kinda ugly too, so I wonder why it can't be replaced? Or maybe another GUI...
1
2569
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 everything. The make install in $WXDIR seemed to go fine. I have the libxw* libraries in my lib/ directory libwx_base-2.5.so@ libwx_gtk_adv-2.5.so.3.0.0* libwx_base-2.5.so.3@ libwx_gtk_core-2.5.so@
25
4280
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 on Windows "(...) > can i use pyGTK under > Windows???
217
9192
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 Perl as a focus, I thought that some of the general points made might be of interest to the Python community. It would certainly be interesting to put together an analogous version of this article that centers on Python. Best Regards,
0
1660
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 version, many of which are listed below and at http://wxpython.org/recentchanges.php. What is wxPython?
2
3857
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 nerfs some of the self-management properties of the terminal. In any case, is there any real good way to do this? I'm leaning towards gtkmm, but I want to be sure there wasn't anything more xwindows/terminal specific before I try my hand at...
0
8996
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9566
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
6800
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6078
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4608
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2217
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.