Created
September 1, 2011 03:49
-
-
Save stevennathaniel/1185412 to your computer and use it in GitHub Desktop.
Python GUI Source Code
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
from Tkinter import * | |
from GUICommon72 import * | |
import string | |
class TestColors(Frame, GUICommon): | |
def __init__(self, parent=None): | |
Frame.__init__(self) | |
self.base = "#848484" | |
self.pack() | |
self.set_colors() | |
self.make_widgets() | |
def make_widgets(self): | |
for tag in ['VDBase', 'DBase', 'Base', 'LBase', 'VLBase']: | |
Button(self, text=tag, bg=eval('self.%s' % string.lower(tag)), | |
fg='white', command=self.quit).pack(side=LEFT) | |
if __name__== '__main__': | |
TestColors().mainloop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment