How do I execute a command when a button is clicked?
Asked by
Charles Edward Pax
Quoted from an entry in Question #17550:
i have succesfully created a button in glade, called dcdbas...added the signal, and ran it through gladex...
as you can see below, i can print out a message, and i see the message in a terminal when i press the button, so thats ok i think...
def on_dcdbas_
print "Modprobing dcdbas..."
pass
now my question, so i can print a message when i press the button, but it also needs to execute a command when i press it: (gk)sudo modprobe dcdbas
how does this work?
thanks in advance!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Gladex Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Charles Edward Pax
- Solved:
- Last query:
- Last reply:
To post a message you must log in.