예제 #1
0
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"
예제 #2
0
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"
예제 #3
0
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")
예제 #4
0
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")