LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 03-16-2005, 09:38 PM   #1
on_the_grid
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, 09:56 PM   #2
red_over_blue
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 irc.freenode.net 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, 12:48 AM   #3
jonaskoelker
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 http://www.lysator.liu.se/~astrand/popen5/
 
Old 03-17-2005, 03:57 AM   #4
on_the_grid
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.

bye,

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


Reply


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 02:54 PM
problem in building GUI using PYGTK on_the_grid Programming 0 03-08-2005 02:59 AM
gdesklets and pygtk problem lyceum Linux - Newbie 5 07-06-2004 12:16 AM
pyGTK compile problem!!! please help Gontzzo Slackware 6 04-07-2004 01:39 AM
pygtk-2.0 install problem?? morrolan Linux - Software 4 01-13-2004 01:31 PM


All times are GMT -5. The time now is 09:24 PM.

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