Created
May 11, 2015 19:25
-
-
Save benjojo/7bbaeb2b57b41fc7523c to your computer and use it in GitHub Desktop.
~in jokes~
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygtk | |
pygtk.require('2.0') | |
import gtk | |
class FirstWin: | |
def __init__(self): | |
self.win = gtk.Window(gtk.WINDOW_TOPLEVEL) | |
color = gtk.gdk.color_parse('#6495ED') | |
self.win.modify_bg(gtk.STATE_NORMAL, color) | |
# To change the color again, just modify it again | |
self.win.show() | |
def main(self): | |
gtk.main() | |
if __name__ == "__main__": | |
first = FirstWin() | |
first.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment