Ticket #5788 defect closed invalid

Opened 10 months ago

Last modified 10 months ago

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

TwistedSwallowsExceptionInQuit.py Download (1.0 KB) - added by r_owen 10 months ago.

Change History

Changed 10 months ago by r_owen

1

Changed 10 months ago by exarkun

  • status changed from new to closed
  • resolution set to invalid

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.