Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import gtk, os
- def press1(widget):
- os.system("gimp&")
- def press2(widget):
- os.system("glxgears&")
- win=gtk.Window()
- win.connect('destroy', lambda w: gtk.main_quit())
- box = gtk.VBox()
- win.add(box)
- send=gtk.Button("gimp")
- send.connect("clicked", press1)
- box.pack_start(send)
- send=gtk.Button("glxgears")
- send.connect("clicked", press2)
- box.pack_start(send)
- win.show_all()
- gtk.main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement