Guest User

Untitled

a guest
Jun 17th, 2014
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #!/usr/bin/env python2
  2.  
  3. WAIT_TIME = 10
  4. ICON_PATH = "/usr/share/icons/gnome/32x32/apps/gnome-help.png"
  5.  
  6. import gtk
  7. import time
  8.  
  9. tray_icon = gtk.status_icon_new_from_file(ICON_PATH)
  10.  
  11. print "Please, wait..."
  12.  
  13. for i in range(WAIT_TIME, 0, -1):
  14. print i
  15. time.sleep(1)
  16.  
  17. print "We are ready for show icon! Now!"
  18.  
  19. gtk.main()
Advertisement
Add Comment
Please, Sign In to add comment