チケット #39892

Fix ASK character acceptance when run with CONSOLE active

登録: 2020-01-06 09:18 最終更新: 2020-01-31 00:47

報告者:
担当者:
チケットの種類:
状況:
完了
コンポーネント:
(未割り当て)
マイルストーン:
(未割り当て)
優先度:
3
重要度:
3
解決法:
修正済み
ファイル:
なし

詳細

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):

self.key = event.char

def eq(self, other):

return self.key == other

def str(self):

return self.key

This is from https://stackoverflow.com/questions/510357/python-read-a-single-character-from-the-user

チケットの履歴 (3 件中 3 件表示)

2020-01-06 09:18 更新者: rdnielsen
  • 新しいチケット "Fix ASK character acceptance when run with CONSOLE active" が作成されました
2020-01-06 09:18 更新者: rdnielsen
  • 詳細が更新されました
コメント

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):

self.key = event.char

def eq(self, other):

return self.key == other

def str(self):

return self.key

This is from https://stackoverflow.com/questions/510357/python-read-a-single-character-from-the-user

2020-01-31 00:47 更新者: rdnielsen
  • 解決法なし から 修正済み に更新されました
  • 状況オープン から 完了 に更新されました

添付ファイルリスト

添付ファイルはありません

編集

ログインしていません。ログインしていない状態では、コメントに記載者の記録が残りません。 » ログインする