Article:
 |
|
Graphical Toolkits for OS X: wxPython
|
| Subject: |
|
The GUI toolkits |
| Date: |
|
2007-05-08 08:08:32 |
| From: |
|
interprocess
|
Response to: The GUI toolkits
|
|
Jeremiah,
I'll admit that I hadn't tried the -X switch for ssh. I tried, with ssh -X both a python script (that works fine on a Linux) and a compiled program. The compiled program displayed remotely fine, but the script didn't. These are the same results that led me to post the comment. I haven't been able to get Python or Tcl/Tk to display remotely from OSX (10.4.7 server, 10.4.9 client).
Have you actually run your example scripts remotely? I would REALLY like to get OSX to behave like a real Unix.
Roger
|
Showing messages 1 through 2 of 2.
-
The GUI toolkits
2007-05-08 10:13:08
Jeremiah Foster |
[View]
-
The GUI toolkits
2007-05-19 19:10:24
interprocess
[View]
As to your specific problem - do you want to run a script on one Mac machine from another Mac? If you are just running a python script, they do not have graphical user interfaces by default. Check to make sure it is a calling a windowing toolkit first. If it does not, you will never see a window when running the script.
If your python application uses Tk as a graphical toolkit then you should be able to see it graphically. First, make sure you are running X windows on the client. This is done through Apple's X11 application available through XCode and the Apple Developer Center. You have to launch X11 first, Apple does not use X11 by default, they have their own proprietary system called Aqua. Once X11 is launched, use the terminal to shell into your remote server with the -X switch. Then run your application. This works for me from a Mac mini core duo to a Ubuntu box, both running X Windows.
You can view a screen dump of ssh -X in action here showing Evolution running under X11 with Apple's clock floating on top of it. Pretty slick! :)
http://jeremiahfoster.com/screen_dump.20070508.tiff
So carefully make sure you have X11 running on _both_ machines, that X windows are exported correctly, that your script is in fact calling a graphical toolkit, and that you have fixed any error message X windows may be throwing.
Good luck,
Jeremiah