How about, I am new to programming in tkinter and I am creating a graphical interface to generate text with interruptions of a button, my intention is that the code show the alphabet and that the cursor is interrupted in the desired row and starts to advance through columns of the alphabet, and when pressing the button again, the desired letter is selected, this with the intention of generating words that will be shown in the same interface, this would help people who can only move a finger to write , but I'm stuck in the code in doing that by pressing the button change from rows to columns, I would appreciate some guidance on how to do it since the code I have so far I have been doing several post that I have seen, thank you very much.
bot = False
def LA():
sv.set('''
>A B C D 1 2
E F G H 3 4
I J K L M N
O P Q R S T
U V W X Y Z
5 6 7 8 9 0''')
def LB():
sv.set('''
A >B C D 1 2
E F G H 3 4
I J K L M N
O P Q R S T
U V W X Y Z
5 6 7 8 9 0''')
def LC():
sv.set('''
A B >C D 1 2
E F G H 3 4
I J K L M N
O P Q R S T
U V W X Y Z
5 6 7 8 9 0''')
def LD():
sv.set('''
A B C >D 1 2
E F G H 3 4
I J K L M N
O P Q R S T
U V W X Y Z
5 6 7 8 9 0''')
def N1():
sv.set('''
A B C D >1 2
E F G H 3 4
I J K L M N
O P Q R S T
U V W X Y Z
5 6 7 8 9 0''')
def N2():
sv.set('''
A B C D 1 >2
E F G H 3 4
I J K L M N
O P Q R S T
U V W X Y Z
5 6 7 8 9 0''')
def LE():
sv.set('''
A B C D 1 2
>E F G H 3 4
I J K L M N
O P Q R S T
U V W X Y Z
5 6 7 8 9 0''')
def LI():
sv.set('''
A B C D 1 2
E F G H 3 4
>I J K L M N
O P Q R S T
U V W X Y Z
5 6 7 8 9 0''')
def LO():
sv.set('''
A B C D 1 2
E F G H 3 4
I J K L M N
>O P Q R S T
U V W X Y Z
5 6 7 8 9 0''')
def LU():
sv.set('''
A B C D 1 2
E F G H 3 4
I J K L M N
O P Q R S T
>U V W X Y Z
5 6 7 8 9 0''')
def N5():
sv.set('''
A B C D 1 2
E F G H 3 4
I J K L M N
O P Q R S T
U V W X Y Z
>5 6 7 8 9 0''')
def buttonClick():
print("Boton Presionado")
bot = True
print(bot)
from tkinter import *
t = 700
v0 = Tk()
v0.title("Sistema de comunicacion")
v0.geometry("800x480")
sv = StringVar()
et = Label (v0, textvariable = sv, font=("Helvetica", 17))
et.pack()
b = Button(v0, text="Presiona", command=buttonClick)
b.pack()
num = 0
i = 0
while True:
et.after((num)*t,LA)
i = i+1
if (bot == True) :
et.after((num+i)*t,LB)
i = i+1
else :
et.after((num+i)*t,LE)
i = i+1
et.after((num+i)*t,LI)
i = i+1
et.after((num+3)*t,LO)
i = i+1
et.after((num+4)*t,LU)
i = i+1
et.after((num+5)*t,N5)
i = i+1
#print(bot)
num = num + 6
try:
v0.update_idletasks()
v0.update()
except TclError:
break