/[lohnrechner]/trunk/lohnrechner2007.py
ViewVC logotype

Diff of /trunk/lohnrechner2007.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 20 by wilde, Fri Jan 14 11:43:17 2005 UTC revision 21 by wilde, Fri Jan 14 11:50:38 2005 UTC
# Line 17  Line 17 
17  __version__ = "$Revision$"  __version__ = "$Revision$"
18  # $Source$  # $Source$
19                    
20  _release_version = "0.%s alpha" % __version__[11:-2]  _release_version = "0.%s beta" % __version__[11:-2]
21    
22  import LST2005  import LST2005
23  from Tkinter import *  from Tkinter import *
# Line 37  class Lohnrechner(LST2005.LStRechner2005 Line 37  class Lohnrechner(LST2005.LStRechner2005
37          self.lohn.grid(row=0, column=1, sticky=W)          self.lohn.grid(row=0, column=1, sticky=W)
38    
39          Label(root, text="Steuerklasse:").grid(row=1, sticky=E)          Label(root, text="Steuerklasse:").grid(row=1, sticky=E)
40          self.stkl = StringVar()          self.stkl = IntVar()
41          stklframe = Frame(root)          stklframe = Frame(root)
42          stklframe.grid(row=1, column=1, sticky=W)          stklframe.grid(row=1, column=1, sticky=W)
43          for text, val in [("I", "1"),          for text, val in [("I", 1),
44                            ("II", "2"),                            ("II", 2),
45                            ("III", "3"),                            ("III", 3),
46                            ("IV", "4"),                            ("IV", 4),
47                            ("V", "5"),                            ("V", 5),
48                            ("VI", "6")]:                            ("VI", 6)]:
49              stklradio = Radiobutton(stklframe, text=text, value=val,              stklradio = Radiobutton(stklframe, text=text, value=val,
50                                      indicatoron=0, command=self.CalcOutput,                                      indicatoron=0, command=self.CalcOutput,
51                                      variable=self.stkl)                                      variable=self.stkl)
# Line 119  class Lohnrechner(LST2005.LStRechner2005 Line 119  class Lohnrechner(LST2005.LStRechner2005
119          except:          except:
120              self.ResetInputKfb()              self.ResetInputKfb()
121    
122          self.SetSteuerklasse(int(self.stkl.get()))          self.SetSteuerklasse(self.stkl.get())
123          self.SetKirchensteuer(int(self.kirche.get()))          self.SetKirchensteuer(int(self.kirche.get()))
124    
125      def CalcOutput(self):      def CalcOutput(self):

Legend:
Removed from v.20  
changed lines
  Added in v.21

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26