Page 1 of 1 1
Topic Options
#193941 - 2009-05-20 03:23 AM Snake charmer wanted
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Anybody here familiar with Python, specifically the GTK extensions?

I've got a py script that runs on a Linux box and creates an X window manager that allows the user to connect to an RDP server or shutdown the PC. I've extended it to allow connection to multiple virtual desktops, but the buttons for each connection and the shutdown appear in a single row, left to right. I'd like to stack them top to bottom.

Don't really want to learn an entire new language to accomplish this.. \:\( so - I'd appreciate a nudge or even a hard shove in the right direction. Have Googled the gtk and py sites, but it's not sinking into my kix-hardened skull.

I'll post code if anyone can help.

Thanks!

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#193943 - 2009-05-20 09:25 AM Re: Snake charmer wanted [Re: Glenn Barnas]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
I can't help (my python skills are more limited than yours!) but I imagine you will get more useful responses from a dedicated board.

A quick google throws up quite a few, this one looks pretty active: http://www.daniweb.com/forums/forum114.html#

Top
#193962 - 2009-05-20 01:29 PM Re: Snake charmer wanted [Re: Richard H.]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
OW! Quit shoving! (oh, wait, I asked for that..) \:D

Thanks Richard, I'll check that out.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#193968 - 2009-05-20 06:16 PM Re: Snake charmer wanted [Re: Glenn Barnas]
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Might also want ping CJ - he's a PYTHON guru. Not sure if you have him on IM or not.
Top
#193970 - 2009-05-20 07:30 PM Re: Snake charmer wanted [Re: Shawn]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Thanks, Shawn.

I don't have his IM, tho

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#193973 - 2009-05-20 08:29 PM Re: Snake charmer wanted [Re: Glenn Barnas]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Actually, found a couple of sites with good info on Python and GTK, figured out the horizontal/vertical alignment issue, and even created a version with a combo-box to select the target.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#193984 - 2009-05-21 03:23 AM Re: Snake charmer wanted [Re: Glenn Barnas]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
OK - I've got working code now in my Python project.

If anyone's interested, it creates a simple, X-windows based thin client on a linux box. I'll be posting a zip with the files and generic installation instructions on my site this weekend.

Pretty simple - install Linux, with RDP client and Python, put the python script, a config file, and a shell script to invoke the python script in /usr/local/bin. Modify the xdm file to point to the shell script, & reboot. You now have a system that launches X with a dialog box that allows connection to an RDP server via one button or Shut Down via the other. Damn near idiot proof.

The config file contains up to 15 host names. With one host in the file, a simple "connect to host" button appears next to the "Shut Down" button. If two or more hosts are listed, a combo-box allows selection of the desired host, and a generic "Connect" button establishes the connection. When the session ends, xdm restarts the "connect or shut down" dialog.

One of our clients is in the recycling business, and they're using these to demonstrate alternate recycling concepts. They're using VDI technology on VMware ESX.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 363 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.056 seconds in which 0.025 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org