|
|
07-12-2008
, 12:41 AM
|
|
Posts: 153 |
Thanked: 62 times |
Joined on Apr 2008
|
#2
|
|
|
07-12-2008
, 01:35 AM
|
|
|
Posts: 3,161 |
Thanked: 1,683 times |
Joined on Oct 2007
|
#3
|
|
|
07-12-2008
, 02:14 AM
|
|
|
Moderator |
Posts: 5,223 |
Thanked: 4,148 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#4
|
|
|
07-12-2008
, 02:22 AM
|
|
|
Posts: 3,161 |
Thanked: 1,683 times |
Joined on Oct 2007
|
#5
|
|
|
07-12-2008
, 02:43 AM
|
|
|
Moderator |
Posts: 5,223 |
Thanked: 4,148 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#6
|
/usr/bin/openhostwin.py IceWM "Please log out of IceWM before closing this window."
| The Following User Says Thank You to qole For This Useful Post: | ||
|
|
07-12-2008
, 04:26 AM
|
|
|
Moderator |
Posts: 5,223 |
Thanked: 4,148 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#7
|
|
|
07-12-2008
, 06:40 AM
|
|
|
Posts: 3,161 |
Thanked: 1,683 times |
Joined on Oct 2007
|
#8
|
| The Following User Says Thank You to Bundyo For This Useful Post: | ||
|
|
07-12-2008
, 08:32 AM
|
|
|
Posts: 3,161 |
Thanked: 1,683 times |
Joined on Oct 2007
|
#9
|
| The Following User Says Thank You to Bundyo For This Useful Post: | ||
|
|
07-12-2008
, 01:12 PM
|
|
|
Moderator |
Posts: 5,223 |
Thanked: 4,148 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#10
|
I wrote a tiny Python app to open a window and put some text in it. But because it is in Python, I need to depend on Python for my package, which otherwise wouldn't have any dependencies.
Could someone write a small compiled program (in C or something) that uses the stock libraries to do the same thing?
Here's the Python code. I mostly ripped it off from the Maemo Python tutorial. It should be very obvious what I want, and I can't imagine it is difficult for any C programmer to whip something up.
#!/usr/bin/env python2.5 import gtk import sys wmname = sys.argv[1] exttxt = sys.argv[2] window = gtk.Window(gtk.WINDOW_TOPLEVEL) window.set_title (wmname) window.connect("destroy", gtk.main_quit) label1 = gtk.Label("This is the "+wmname+" host window.\n"+exttxt) window.add(label1) window.show_all () gtk.main()qole.org