8000 [Bug]Clicking on a button does not generate an event · Issue #5036 · PySimpleGUI/PySimpleGUI · GitHub
[go: up one dir, main page]

Skip to content
[Bug]Clicking on a button does not generate an event #5036
@mguttman

Description

@mguttman

Type of Issue (Enhancement, Error, Bug, Question)

Bug

Operating System

Windows 10

PySimpleGUI Port (tkinter, Qt, Wx, Web)

tkinter


Versions

Python version: 3.9.9 (tags/v3.9.9:ccb0e6a, Nov 15 2021, 18:08:50) [MSC v.1929 64 bit (AMD64)]
port: tkinter
tkinter version: 8.6.12
PySimpleGUI version: 4.55.1
PySimpleGUI filename: C:\Users\USER\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\PySimpleGUI\PySimpleGUI.py

Python version (sg.sys.version)

see above

PySimpleGUI Version (sg.__version__)

see above

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

tkinter


Your Experience In Months or Years (optional)

Years Python programming experience
One year

Years Programming experience overall
Over 25 years

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

Anything else you think would be helpful?


Troubleshooting

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

  • Searched main docs for your problem www.PySimpleGUI.org
  • Looked for Demo Programs that are similar to your goal Demos.PySimpleGUI.org
  • 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.org
  • Tried using the PySimpleGUI.py file on GitHub. Your problem may have already been fixed but not released

Detailed Description

The issue relates only to buttons. Clicking on a button initially, causes no event, therefore no response at all. Multiple clicking on the same button result in the same non-event, non-responding status.
However, once I click anywhere else in the window in a non-widget/blank area and then clicking the button again an event is generated and processing is carried out correctly.

Code To Duplicate

I wasn't able to write a small piece of code to duplicate the issue!
I wrote one with a button and some popup response to clicks on it and it worked 100% of the time! I also executed many demo programs, to the same (non) effect.
In my two rather large application the issue manifests itself on every click. Tell me what to look for and where and I might find a clue to the problem.

This pre-formatted code block is all set for you to paste in your bit of code:

# Paste your code here

image


Watcha Makin?

It is for keeping records of investments activities, together with some meta data to be superimposed on daily, weekly and such charts. It also sends e-mails to our investing group as well as exporting all DB-modifying actions, to a JSON file for import by all members of the the same group.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething's not rightPort - TKPySimpleGUI

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0