Skip to content

Mouse clicks anywhere break the application #54

Closed

Description

@conorpcleary

Clicking anywhere in the application causes a crash:

  File "/opt/anaconda3/bin/mlb-cli", line 7, in <module>
    sys.exit(main())
             ~~~~^^
  File "/Users/conorcleary/projects/gemini_projects/mlb-cli-py/app/mlb_cli.py", line 330, in main
    app.run()
    ~~~~~~~^^
  File "/Users/conorcleary/projects/gemini_projects/mlb-cli-py/app/mlb_cli.py", line 297, in run
    with self.manager:
         ^^^^^^^^^^^^
  File "/opt/anaconda3/lib/python3.13/site-packages/pytermgui/window_manager/manager.py", line 121, in __exit__
    raise exception
  File "/Users/conorcleary/projects/gemini_projects/mlb-cli-py/app/mlb_cli.py", line 324, in run
    self.manager.run()
    ~~~~~~~~~~~~~~~~^^
  File "/opt/anaconda3/lib/python3.13/site-packages/pytermgui/window_manager/manager.py", line 198, in run
    self._run_input_loop()
    ~~~~~~~~~~~~~~~~~~~~^^
  File "/opt/anaconda3/lib/python3.13/site-packages/pytermgui/window_manager/manager.py", line 144, in _run_input_loop
    self.process_mouse(key)
    ~~~~~~~~~~~~~~~~~~^^^^^
  File "/opt/anaconda3/lib/python3.13/site-packages/pytermgui/window_manager/manager.py", line 497, in process_mouse
    self.focus(window)
    ~~~~~~~~~~^^^^^^^^
  File "/opt/anaconda3/lib/python3.13/site-packages/pytermgui/window_manager/manager.py", line 296, in focus
    self.focused.blur()
    ^^^^^^^^^^^^^^^^^
AttributeError: 'CalendarButton' object has no attribute 'blur'

Activity

  1. added this to the v0.2.0 milestone on May 25, 2026
  2. moved this from Backlog to In review in mlb-cli-pyon May 25, 2026
  3. linked a pull request that will close this issueBug fixes for v0.2.0 #55on May 25, 2026
  4. moved this from In review to In progress in mlb-cli-pyon May 25, 2026
  5. moved this from In progress to Done in mlb-cli-pyon May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions