Register a domain and help support LQ
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-16-2005, 10:38 PM   #1
LQ Newbie
Registered: Mar 2005
Posts: 3

Rep: Reputation: 0
problem with PyGTK

hi everyone,

i'm developing a grid portal using PyGTK and looks like i'm stuck at this place. can anybody tell me how to give input to a C program which has been executed by os.system() call in PyGTK.

my problem is somewhat similar to providing password via PyGTK window to 'su' (in linux 8.0, red hat, asking for superuser password), i'm not able to give input(here password) on PyGTK window after 'su' is executed, instead the prompt appears on the terminal. this is proving to be a grt hiderance in building the GUI.

we've tried input redirection, but it doesn't seem to work.

CAN ANYBODY HELP US OUT!!!!!!!!!!!!!!!!!!!!!!!
Old 03-16-2005, 10:56 PM   #2
LQ Newbie
Registered: Feb 2003
Location: MB, Canada
Posts: 26

Rep: Reputation: 15
I can't answer your question, but I can tell you that the #python channel on is a very knowledgable and friendly irc channel. I'm sure they can help you there if you don't find anything here.
Old 03-17-2005, 01:48 AM   #3
Senior Member
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 46
if what you want is to have your application run a program as root, try `gksu someprogram';
also, have a look at
Old 03-17-2005, 04:57 AM   #4
LQ Newbie
Registered: Mar 2005
Posts: 3

Original Poster
Rep: Reputation: 0
thanx, but problem persists

thanx ppl, for the help.
i did check the websites but they didn't prove to be of much help.
i want to try this in other way, can someone suggest where the source code of login password prompt is stored.
i might get a hint for developing my GUI.


Last edited by on_the_grid; 03-17-2005 at 04:59 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PROBLEM: pygtk progress bar bendeco13 Programming 3 04-05-2005 03:54 PM
problem in building GUI using PYGTK on_the_grid Programming 0 03-08-2005 03:59 AM
gdesklets and pygtk problem lyceum Linux - Newbie 5 07-06-2004 01:16 AM
pyGTK compile problem!!! please help Gontzzo Slackware 6 04-07-2004 02:39 AM
pygtk-2.0 install problem?? morrolan Linux - Software 4 01-13-2004 02:31 PM

All times are GMT -5. The time now is 12:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration