def guest_log(widgets): widgets[0].Close() Account="Guest" if(widgets[3].getChecked()==0): todoList.new_win(0,0,Account) elif(widgets[3].getChecked()==1): todoList.new_win(0,1,Account) elif(widgets[3].getChecked()==2): todoList.new_win(0,1,Account) elif(widgets[3].getChecked()==3): todoList.new_win(0,3,Account) else: print "Error With Radio-Buttons"
def guest_log(widgets): widgets[0].Close() Account = "Guest" if (widgets[3].getChecked() == 0): todoList.new_win(0, 0, Account) elif (widgets[3].getChecked() == 1): todoList.new_win(0, 1, Account) elif (widgets[3].getChecked() == 2): todoList.new_win(0, 1, Account) elif (widgets[3].getChecked() == 3): todoList.new_win(0, 3, Account) else: print "Error With Radio-Buttons"
def login_method(widgets): if(str(widgets[1].getText())==USR and str(widgets[2].getText())==PSWD): widgets[0].Close() Account= "Admin" if(widgets[3].getChecked()==0): todoList.new_win(0,0,Account) elif(widgets[3].getChecked()==1): todoList.new_win(0,1,Account) elif(widgets[3].getChecked()==2): todoList.new_win(0,2,Account) elif(widgets[3].getChecked()==3): todoList.new_win(0,1,Account) else: print "Error With Radio-Buttons" else: widgets[4].setText("UserName and Password donot Match")
def login_method(widgets): if(str(widgets[1].getText())==USR and str(widgets[2].getText())==PSWD): widgets[0].Close() Account= "Admin" if(widgets[3].getChecked()==0): todoList.new_win(0,0,Account) elif(widgets[3].getChecked()==1): todoList.new_win(0,1,Account) elif(widgets[3].getChecked()==2): todoList.new_win(0,2,Account) elif(widgets[3].getChecked()==3): todoList.new_win(0,3,Account) else: print "Error With Radio-Buttons" else: widgets[4].setText("UserName and Password donot Match")