Tag Info

Hot answers tagged

2

You are probably looking for system() method in os package. Have rewritten the snippet, had a few corrections too: #!/usr/bin/env python import pygtk import os pygtk.require('2.0') import gtk class Base: def send(self, widget): os.system('ifconfig') #this executes commands on the terminal def writecommand(self, widget): ...



Only top voted, non community-wiki answers of a minimum length are eligible