SHARE
TWEET

Untitled

a guest Nov 9th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. """
  2. File: taxformwithgui.py
  3. Project 8.1
  4. A GUI-based tax calculator.
  5.  
  6. Computes and prints the total tax, given the income and
  7. number of dependents (inputs), and a standard deduction of
  8. $10,000, an exemption amount of $3,000, and a flat tax rate
  9. of 20%.
  10. """
  11.  
  12. from breezypythongui import EasyFrame
  13.  
  14. class TaxCalculator(EasyFrame):
  15.     """Application window for the tax calculator."""
  16.  
  17.     def __init__(self):
  18.         """Sets up the window and the widgets."""
  19.         EasyFrame.__init__(self, title = "Tax Calculator")
  20.  
  21.         # Label and field for the income
  22.         # (self.incomeField)
  23.  
  24.         # Label and field for the number of dependents
  25.         # (self.depField)
  26.  
  27.          # The command button
  28.  
  29.         # Label and field for the tax
  30.         # (self.taxField)
  31.  
  32.     # The event handler method for the button
  33.     def computeTax(self):
  34.         """Obtains the data from the input field and uses
  35.         them to compute the tax, which is sent to the
  36.         output field."""
  37.         pass
  38.        
  39.        
  40. def main():
  41.     TaxCalculator().mainloop()
  42.  
  43. if __name__ == "__main__":
  44.     main()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top