Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[ Bug ] Problem with HID device at first fire in the edit focused in pysimplegui tkinter.

オープン
#6,728 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
android, python
領域
frontend, mobile

調査の方向性

Pydroid と PySimpleGUI 5 を使用する Android 13 上で、1 つの編集フィールドを含む単純な PySimpleGUI Tkinter フォームを使って問題を再現します。Bluetooth HID バーコードによって、フィールドを手動でタップする前と後にフィールドへ入力されるかをテストします。フィールドにフォーカスがあるように見える状態で最初のスキャンが受け付けられるか、またはプラットフォーム固有の制限が文書化されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Platform Specific Issue - Android Port - TK PySimpleGUI 5

Bug

Problem with HID device at first fire in the edit focused in pysimplegui tkinter.

Operating System

Android

PySimpleGUI Port (tkinter, Qt, Wx, Web)

Tkinter


Versions

Version information can be obtained by calling sg.main_get_debug_data()
Or you can print each version shown in ()

Android 13 (the phone is samsung).
PSG is 5, i reinstall and i have inserted my developer key (take care, the screen is too much large in orizontal, it has been difficult to insert the passcode, but i set it).

Python version (sg.sys.version)

Pydroid ... i have not the cell in my hand now ... but seems thae pydroid has been update because running the pysimplegui app, library pusimplegui wasn't installed (they have been lost by pydroid). So is a recent pydrod i mean.

PySimpleGUI Version (sg.__version__)

5 with developer key inserted correctly

GUI Version (tkinter (sg.tclversion_detailed), PySide2, WxPython, Remi)

tkinter


Your Experience In Months or Years (optional)

6 Years Python programming experience

Since Commodore Vic 20 ... :-D ... Years Programming experience overall

Have used another Python GUI Framework? (tkinter, Qt, etc) (yes/no is fine)

No only the simpler tkinter

Anything else you think would be helpful?

I'm sorry is not simple to handle with warehouse workers ... it seems to me that the issue is due to some difference in recent android, with HID devices. Before, runned the psg app, it instantly fire barcode into che edit field. Now it's behaviour is changed, i do not know why, the app is the same. Some other phone has not this problem by i can't get now to see what android they have ...
If you can't give me some advice, I'll investigate further, but if in the meantime someone already had the solution to the problem... that's why I wrote.

Troubleshooting

These items may solve your problem. Please check those you've done by changing - [ ] to - [X]

  • Searched main docs for your problem PySimpleGUI Documenation
  • Looked for Demo Programs that are similar to your goal. It is recommend you use the Demo Browser! Demo Programs
  • None of your GUI code was generated by an AI algorithm like GPT
  • If not tkinter - looked for Demo Programs for specific port
  • For non tkinter - Looked at readme for your specific port if not PySimpleGUI (Qt, WX, Remi)
  • Run your program outside of your debugger (from a command line)
  • Searched through Issues (open and closed) to see if already reported Issues.PySimpleGUI.com
  • [ x] Have upgraded to the latest release of PySimpleGUI on PyPI (lastest official version)
  • Tried running the Development Build. Your problem may have already been fixed but not released. Check Home Window for release notes and upgrading capability
  • For licensing questions please email license@PySimpleGUI.com
Detailed Description

Hi, I have a problem on an android cell where I run pydroid with pysimplegui. This is the second time this has happened to me, because it had already happened to me on another cell phone. So: the mobile phone is connected to a barcode reader. When I fire the barcode, and I'm in an edit field, clearly the read code was inserted immediately (the barcode is in keyboard emulation, connected via bluetooth). The barcode does not give any errors: if I run it into any text editor, it transcribes the barcode.
Now, I launch the program on Android and I see a pysimplegui window, with the cursor flashing inside an edit field, until recently it didn't cause problems. If I fired, it immediately inserted into the edit field. Now, however, if I shoot, nothing happens. Only if with my real finger I click inside the edit field and the Android virtual keyboard is shown, then from that moment on, by shooting in the reader the barcode is inserted into the edit. It therefore seems that the first time I launch the window, even though the edit field is in focus, Android doesn't feel that focus until I click in it with my finger. It's a problem because the warehouse workers don't understand what's happening, they hear the reader beeping, but they don't enter the code. Unfortunately, the warehouses often have staff who come and go and so it is problematic that even though the cursor flashing inside the edi field is there, when shooting it doesn't read anything... has anyone had the same problem? How can it be solved? I've tried various things at the android level, but I can't get past it. If you focus on an edit field, Android should feel like the edit field has been clicked, or not? Why didn't this happen a while ago? Maybe it's a problem on Android versions? cell phones are quite recent.

Code To Duplicate

A simple form with one edit field get the issue ... i think it is not necessary to paste code ...
Again, i will do more tests... but is not so easy o go to customers ....so if you can help me the same, i appreciate ... other wise, i will do more tests by miself ...

Screenshot, Sketch, or Drawing

Watcha Makin?

Well, I have done a 3D autoprinted case to contain 1) an android phone 2) and a HID barcode connected via bluetooth. With pydroid and PSG - what a powerful couple !! - , I now have the most powerful app to read barcode in the world ... i am joking, but the intergration with my ERP is fanatstic ... but i had this issue recently ... unfortunately warehouse workers are often a category of demanding users: either things work perfectly, or they don't use them at all...

主要言語
Python
スター
13.8k
フォーク
1.8k
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PySimpleGUI/PySimpleGUI のほかの issue

PySimpleGUI/PySimpleGUI の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。