[Tutor] Tkinter Q's
cpu.crazy at gmail.com
Mon Jul 11 19:22:57 CEST 2005
Hi first off, here's my code:
# -*- coding: utf-8 -*-
from Tkinter import *
root = Tk()
frame = Frame()
root.title("Quoter %s" % (about.ver))
showquote = Label(root, text=random.choice(quotes.quote))
exit = Button(root, text="Exit", command=closeprog)
aboutprg = Button(root, text="About", command=about.main)
totalq = Label(root, text=quotes.qts)
(I'd appreciate some suggestions, or notifications on how bad something is)
I have a small problem: I don't know how to make a button that would
redisplay another quote in the same window, ie I need a button that
says: Show Another Quote. (Actually I don't know how to make it show
another quote even in a new window!!). I got the interface from Catfood
Here's a tid-bit of the quotes module:
# Brian Kernighan
bk1 = """Controlling complexity is the essence of computer programming.
-- Brian Kernighan"""
yadayada = """Foo/bar"""
quote = [bk1, yadayada]
Unix Love, Linux Pride
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor