示例#1
0
def main():
    model = Employee.Employee()
    root = tk.Tk()
    #control = TimeClock(model)
    control = newTC(model)
    app = clockView(root, model, control)
    app.tick()
    #root.attributes('-fullscreen', True)
    root.mainloop()
示例#2
0
def clockOutAll():
    emp = Employee.Employee()
    tc = newTC(emp)
    for row in c.execute('select pin, status from Employees'):
        pin = row[0]
        status = row[1]
        pins.append([pin, status])
     
    for a in pins:
        p = a[0]
        s = a[1]
        if s == 1:
            tc.set_pin(p)
            tc.in_or_out()
            print p
示例#3
0
def clockOutAll():
    emp = Employee.Employee()
    tc = newTC(emp)
    for row in c.execute('select pin, status from Employees'):
        pin = row[0]
        status = row[1]
        pins.append([pin, status])

    for a in pins:
        p = a[0]
        s = a[1]
        if s == 1:
            tc.set_pin(p)
            tc.in_or_out()
            print p