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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-16-2005, 09:38 PM
|
#1
|
LQ Newbie
Registered: Mar 2005
Posts: 3
Rep:
|
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!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
03-16-2005, 09:56 PM
|
#2
|
LQ Newbie
Registered: Feb 2003
Location: MB, Canada
Posts: 26
Rep:
|
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.
|
|
|
03-17-2005, 12:48 AM
|
#3
|
Senior Member
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524
Rep:
|
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/
|
|
|
03-17-2005, 03:57 AM
|
#4
|
LQ Newbie
Registered: Mar 2005
Posts: 3
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 07:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|