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