Opened 2 years ago

Closed 2 years ago

#5788 defect closed invalid (invalid)

Twisted Tk swallows errors in ::tk::mac::Quit on MacOS X

Reported by: r_owen Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch:
Author: r_owen Launchpad Bug:

Description

The Twisted event loop, when used with Tkinter silently swallows exceptions raised in the ::tk::mac::Quit command (thus this is only an issue on MacOS X).

The problem does not show up when using Tk's own event loop. See attached example, which includes a flag to toggle twisted on/off.

My setup:

  • Mac OS X 10.7.4
  • 64-bit python.org Python 2.7.3
  • ActiveState Tcl/Tk ActiveTcl8.5.11.1.295590-macosx10.5-i386-x86_64-threaded
  • Twisted 12.0.0

Attachments (1)

TwistedSwallowsExceptionInQuit.py (1.0 KB) - added by r_owen 2 years ago.

Download all attachments as: .zip

Change History (2)

Changed 2 years ago by r_owen

comment:1 Changed 2 years ago by exarkun

  • Resolution set to invalid
  • Status changed from new to closed

From the API documentation for tksupport:

When using Aqua Tcl/Tk on Mac OS X the standard Quit menu item in
your application might become unresponsive without the additional

fix

| root.createcommand("::tk::mac::Quit", reactor.stop)

@see: U{Tcl/TkAqua FAQ for more info<http://wiki.tcl.tk/12987>}

Note: See TracTickets for help on using tickets.