Example #1
0
def fnDesbloquear(key):
    global word
    global blocked
    #print(blocked)
    if blocked and key.keycode != 13:
        blocked = False
        
        txtAnswer.config(state = NORMAL)
    
        btnVolverMain.config(state = NORMAL)
    
        btnAyuda.config(state = NORMAL)
    
        btnSumbit.config(state = NORMAL)
    
        btnOtro.config(state = NORMAL)

        textoEntry.set('')

        lblMsg.place_forget()

        lblExample.place_forget()

        word = app_graphical.main()

        lblOracion.config(text = 'The verb is: {}'
                      .format(word['verb'][0].upper() + word['verb'][1:]))
Example #2
0
def fnOtro():
    #app_graphical.fnAnswer(False, word)

    lblExample.config(text = 'Example : ')
    
    word = app_graphical.main()

    lblOracion['text'] = word['verb']
Example #3
0
def fnOK():
    global word
    textoEntry.set('')
    txtAnswer.config(state = NORMAL)
    lblExample.place_forget()
    #lblExample.config(text = '')
    
    app_graphical.fnAnswer(False, word)
    
    word = app_graphical.main()
    
    lblOracion.config(text = 'The verb is: {}'
                      .format(word['verb'][0].upper() + word['verb'][1:]))

    btnVolverMain.config(state = NORMAL)

    btnAyuda.config(state = NORMAL)

    btnSumbit.config(state = NORMAL)
    
    btnOK.place_forget()
Example #4
0

#--------------------------------
#Here we create another window
A_P = Tk()
#import app_graphical

A_P.withdraw()

A_P.geometry('400x200+522+130')

A_P.title('Adjective + Preposition')

A_P.protocol("WM_DELETE_WINDOW", fnCerrarAP)

word = app_graphical.main()

btnVolverMain = Button(A_P, text = 'Go back',
                       font = ('Helvetica', 10, 'italic'),
                       bg = '#D7D6D6',
                       command = fnCerrarAP)

btnVolverMain.place(x = 10, y = 10)

btnAyuda = Button(A_P, text = 'Answer',
                  font = ('Helvetica', 12, 'italic'),
                  bg = '#D7D6D6',
                  command = fnPista)

btnAyuda.place(x = 325, y = 80)