Got an iPhone or iPad? We have a brand new Pastebin App for both devices, and it's totally free! Click here to download the new Pastebin App for iOS.
Guest

bryce

By: a guest on Feb 9th, 2010  |  syntax: None  |  size: 0.42 KB  |  hits: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. #!/usr/bin/env python
  2.  
  3. import gtk
  4.  
  5. print "Hello world"
  6.  
  7. w = gtk.Window()
  8. w.realize()
  9. style=w.get_style()
  10.  
  11. l=[gtk.STATE_NORMAL,gtk.STATE_ACTIVE,gtk.STATE_PRELIGHT,gtk.STATE_SELECTED,gtk.STATE_INSENSITIVE]
  12. for i in l:
  13.     print "- base",i,style.base[i].to_string()
  14. for i in l:
  15.     print "- text",i,style.text[i].to_string()
  16. for i in l:
  17.     print "- fg",i,style.fg[i].to_string()
  18. for i in l:
  19.     print "- bg",i,style.bg[i].to_string()