Something like the following may be useful:
class Keypress: def init(self): self.root = tk.Tk() self.root.geometry('300x200') self.root.bind('<KeyPress>', self.onKeyPress)
def onKeyPress(self, event):
def eq(self, other):
def str(self):
This is from https://stackoverflow.com/questions/510357/python-read-a-single-character-from-the-user
Character input needs to be managed by Tkinter when the ASK metacommand is run when execsql's console is open.
Something like the following may be useful:
class Keypress: def init(self): self.root = tk.Tk() self.root.geometry('300x200') self.root.bind('<KeyPress>', self.onKeyPress)
def onKeyPress(self, event):
def eq(self, other):
def str(self):
This is from https://stackoverflow.com/questions/510357/python-read-a-single-character-from-the-user