Re: Tax Calculator--Tkinter

2009-11-09 Thread Marcus Gnaß
Someone Something wrote: > > from Tkinter import *; Try to avoid this. Better import Tkinter. And don't forget to import Tkconstants too! > > rate=Frame(root) > > income=Frame(root) > > result=Frame(root) Why do you use three frames? You only need one. And you can make your class TaxCalc inherit

Re: Tax Calculator--Tkinter

2009-11-08 Thread MRAB
Someone Something wrote: I'm writing a simple tax calculator with Tkinter (just for fun). Here's my current code: [snip] def printResult(self): if self.nrate is None | self.nincome is None: There's no such attribute as nrate or nincome. Also, "|" is the bitwise oper

Tax Calculator--Tkinter

2009-11-08 Thread Someone Something
I'm writing a simple tax calculator with Tkinter (just for fun). Here's my current code: from Tkinter import *; class TaxCalc: def __init__(self, root): rate=Frame(root) rate.pack() income=Frame(root) income