File: pygadgets-products/unzipped/_PyClock/Clock/_PriorCodePP4E/clockStyles.py
# precoded clock configuration styles from clock import * from tkinter import mainloop gifdir = '../gifs/' if __name__ == '__main__': from sys import argv if len(argv) > 1: gifdir = argv[1] + '/' class PPClockBig(PhotoClockConfig): picture, bg, fg = gifdir + 'ora-pp.gif', 'navy', 'green' class PPClockSmall(ClockConfig): size = 175 picture = gifdir + 'ora-pp.gif' bg, fg, hh, mh = 'white', 'red', 'blue', 'orange' class GilliganClock(ClockConfig): size = 550 picture = gifdir + 'gilligan.gif' bg, fg, hh, mh = 'black', 'white', 'green', 'yellow' class LP4EClock(GilliganClock): size = 700 picture = gifdir + 'ora-lp4e.gif' bg = 'navy' class LP4EClockSmall(LP4EClock): size, fg = 350, 'orange' class Pyref4EClock(ClockConfig): size, picture = 400, gifdir + 'ora-pyref4e.gif' bg, fg, hh = 'black', 'gold', 'brown' class GreyClock(ClockConfig): bg, fg, hh, mh, sh = 'grey', 'black', 'black', 'black', 'white' class PinkClock(ClockConfig): bg, fg, hh, mh, sh = 'pink', 'yellow', 'purple', 'orange', 'yellow' class PythonPoweredClock(ClockConfig): bg, size, picture = 'white', 175, gifdir + 'pythonPowered.gif' if __name__ == '__main__': root = Tk() for configClass in [ ClockConfig, PPClockBig, #PPClockSmall, LP4EClockSmall, #GilliganClock, Pyref4EClock, GreyClock, PinkClock, PythonPoweredClock ]: ClockPopup(configClass, configClass.__name__) Button(root, text='Quit Clocks', command=root.quit).pack() root.mainloop()