GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tkinter events not working since Python 3.14 w/ Tk 9.0 · Issue #141237 · python/cpython

tkinter events not working since Python 3.14 w/ Tk 9.0 #141237

New issue
Copy link
New issue
Copy link
Closed
Closed
tkinter events not working since Python 3.14 w/ Tk 9.0#141237
Copy link
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtopic-tkintertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@der-eismann
der-eismann
opened on Nov 8, 2025
Issue body actions

Bug report

Bug description:

Hey everyone, I tried updating an application that uses tkinter from Python 3.12 to 3.14, however it stopped working. After spending some time debugging and testing I found that 3.13 works fine, but ultimately it stops working with 3.14, probably because of the upgrade to TCL/TK 9.0.
Essentially it looks like the event bindings are broken, at least the handlers are not called when an event is generated. I couldn't find anything in the changelogs so far. Here's a minimal example that I can run on Fedora with 3.12 and 3.13, but not with 3.14 (taken from here:

import threading
import time
import queue
from tkinter import *

ws = Tk()
ws.geometry("200x200")
comque= queue.Queue()

def timeThread():
    prestime = 0
    while 1:
        comque.put(prestime)
        
        try:
            ws.event_generate('<<TimeChanged>>', when='tail')
        except TclError:
            break
        time.sleep(1)
        prestime += 1

clcvar = IntVar()
Label(ws, textvariable=clcvar, width=9).pack(pady=10)

def timeChanged(event):
    clcvar.set(comque.get())

ws.bind('<<TimeChanged>>', timeChanged)
Thr=threading.Thread(target=timeThread)
Thr.start()

ws.mainloop()

Thanks in advance!

CPython versions tested on:

3.14

Operating systems tested on:

Linux

Activity

  1. der-eismann
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Nov 8, 2025
  2. StanFromIreland
    added
    extension-modulesC modules in the Modules dirC modules in the Modules dir
    topic-tkinter
    on Nov 8, 2025
  3. der-eismann
    changed the title [-]tkinter events not working since Python 3.14[/-] [+]tkinter events not working since Python 3.14 w/ TK 9.0[/+] on Nov 8, 2025
  4. der-eismann
    changed the title [-]tkinter events not working since Python 3.14 w/ TK 9.0[/-] [+]tkinter events not working since Python 3.14 w/ Tk 9.0[/+] on Nov 11, 2025
  5. chrstphrchvz commented on Nov 12, 2025

    @chrstphrchvz
    chrstphrchvz
    on Nov 12, 2025
    Contributor
    More actions

    I can reproduce this issue, and I have verified it would be fixed by gh-128103.

  6. zware commented on Nov 12, 2025

    @zware
    zware
    on Nov 12, 2025
    Member
    More actions

    Thanks, @chrstphrchvz. I've merged gh-128103, so closing this as fixed. Thanks for the report, @der-eismann!

  7. zware
    closed this as completedon Nov 12, 2025
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

    extension-modulesC modules in the Modules dirC modules in the Modules dirtopic-tkintertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.