Re: [Pythonmac-SIG] Tkinter and PyObjC

2017-09-06 Thread Kevin Walzer
Ronald, On 9/6/17 4:57 PM, Ronald Oussoren wrote: I’ve done some quick browsing of the Tk source code and it appears that Tk assumes that -[NSApplication sharedApplication] returns an instance of a Tk-specific private subclass of NSApplication and that won’t be true when the Tk runloop is sta

Re: [Pythonmac-SIG] Tkinter and PyObjC

2017-09-06 Thread Jack Jansen
From memory (and cobwebbed memory, at that:-) I recall that I never got Tkinter and Cocoa to work together. The runloops got into each others’ ways. Similar for other GUI toolkits (Gtk, for example). I did (with lots of pulling of hairs and gnashing of teeth) get Cocoa GUI to work together with

[Pythonmac-SIG] Tkinter and PyObjC

2017-09-06 Thread Ronald Oussoren
Hi, I’m kind of hoping that a Tkinter or Tk expert is reading this… A PyObjC user tries to call Tkinter from a Cocoa program (that is, the Cocoa runloop starts before the Tkinter one) and gets an error message: -[NSApplication _setup:]: unrecognized selector sent to instance Furthermore th