<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi first off, here's my code:<br>
<br>
<font face="Courier"># -*- coding: utf-8 -*-<br>
from Tkinter import *<br>
import random<br>
import time<br>
import about<br>
import quotes<br>
<br>
<br>
def closeprog():<br>
raise SystemExit<br>
<br>
class main:<br>
root = Tk()<br>
frame = Frame()<br>
root.title("Quoter %s" % (about.ver))<br>
root.minsize(300, 50)<br>
<br>
showquote = Label(root, text=random.choice(quotes.quote))<br>
showquote.pack()<br>
<br>
exit = Button(root, text="Exit", command=closeprog)<br>
exit.pack(side=LEFT)<br>
<br>
aboutprg = Button(root, text="About", command=about.main)<br>
aboutprg.pack(side=LEFT)<br>
<br>
<br>
totalq = Label(root, text=quotes.qts)<br>
totalq.pack(side=BOTTOM)<br>
<br>
root.mainloop()<br>
<br>
</font>(I'd appreciate some suggestions, or notifications on how bad
something is)<br>
<br>
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
Fortune Cookie.<br>
<br>
Here's a tid-bit of the quotes module:<br>
<font face="Courier New, Courier, monospace"> # Brian Kernighan<br>
bk1 = """Controlling complexity is the essence of computer programming.<br>
<br>
-- Brian Kernighan"""<br>
<br>
yadayada = """Foo/bar"""<br>
<br>
quote = [bk1, yadayada]<br>
<br>
</font>Thanks,<br>
Joe<br>
<pre class="moz-signature" cols="72">--
Unix Love, Linux Pride
</pre>
</body>
</html>