Share your knowledge at the LQ Wiki.
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 01-20-2008, 07:58 PM   #1
Registered: Oct 2006
Distribution: Debian x64
Posts: 198

Rep: Reputation: 30
Python, Glade, using number keys to press button

I have created a Glade menu to run with a Python program. I can press a number key to correspond with each menu item.

I would like to use this to control / access / use a shell script I created. I believe I should use
subprocess("") but beyond that I'm not sure.
It doesn't find the script should I statically list it's position "/usr/bin/"
It also seems to be looking for /bin/sh can I specify /bin/bash?

Last edited by donnied; 01-20-2008 at 10:48 PM.


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
How to press Alt + F1 keys programmatically in Linux dipk_23 Programming 4 05-10-2007 02:01 AM
keyboard issue - have to double press some keys whysyn Linux - Hardware 9 10-31-2005 09:25 AM
Keyboard Problem - I have to press a key twice for certain keys daedius Linux - Hardware 4 01-13-2005 07:32 AM
Can Only Press 3 or 4 Keys At Once While Gaming soroh Linux - Hardware 3 07-14-2004 03:33 AM
Beep when I press keyborad keys.. ! xconspirisist Fedora 1 01-30-2004 07:37 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:39 AM.

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