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

Diff of /trunk/lohnrechner2006.py

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

revision 6 by wilde, Thu Jan 13 09:42:47 2005 UTC revision 7 by wilde, Thu Jan 13 10:01:01 2005 UTC
# Line 13  Line 13 
13    
14  """Lohn/Gehaltsrechner f�r das Jahr 2005"""  """Lohn/Gehaltsrechner f�r das Jahr 2005"""
15    
16    __version__ = "$Revision$"
17    # $Source$
18            
19    _release_version = "0.1alpha"
20    
21  import LST2005  import LST2005
22  from Tkinter import *  from Tkinter import *
23    
# Line 21  class Lohnrechner(LST2005.LStRechner2005 Line 26  class Lohnrechner(LST2005.LStRechner2005
26      def __init__(self, root):      def __init__(self, root):
27          LST2005.LStRechner2005.__init__(self)          LST2005.LStRechner2005.__init__(self)
28    
29            root.title("Lohnrechner 2005 - v%s" % _release_version)
30    
31          Label(root, text="Lohn:").grid(row=0, sticky=E)          Label(root, text="Lohn:").grid(row=0, sticky=E)
32          self.lohn = Entry(root)          self.lohn = Entry(root)
33          self.lohn.grid(row=0, column=1, sticky=W)          self.lohn.grid(row=0, column=1, sticky=W)
# Line 57  class Lohnrechner(LST2005.LStRechner2005 Line 64  class Lohnrechner(LST2005.LStRechner2005
64                    
65          self.CalcOutput()          self.CalcOutput()
66                    
   
67      def ResetInput(self):      def ResetInput(self):
68          self.lohn.insert(0, "0")          self.lohn.insert(0, "0")
69    
# Line 74  class Lohnrechner(LST2005.LStRechner2005 Line 80  class Lohnrechner(LST2005.LStRechner2005
80          self.soli.insert(0, "%.2f" % self.GetSoli())                  self.soli.insert(0, "%.2f" % self.GetSoli())        
81    
82    
   
83  if __name__ == "__main__":  if __name__ == "__main__":
84      root = Tk()      root = Tk()
85      lr = Lohnrechner(root)      lr = Lohnrechner(root)

Legend:
Removed from v.6  
changed lines
  Added in v.7

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26