How can i in guizero TextBox disable() use?

171 views Asked by At

Hi I'm trying to develop a system in which I use a barcode scanner and scan membership cards and recognize who is there by ID, then my system. So only time tracking. I have PyMySQL. They works all fine but i now have TextBox with the command

...
def pause():
    barcode_input.disable()

def pause2():
   barcode_input.enabled=True

def pause_textbox():
   barcode_input.after(70,pause)
   barcode_input.after(3000, pause1)

#GUI start here
...
barcode_input.when_key_released = pause_textbox
...

and the TextBox will also turn gray. But it still takes over the data in the background if i still hold the membership card on it, but in the view it does what it should do. They takes then twice in The Table MySQL the login details. Sry for my english.

0

There are 0 answers