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
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
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