Re: [Tkinter-discuss] tkFileDialog.askopenfile() mac

2014-08-12 Thread JBB
Kevin, On 8/12/14, 7:19 PM, Kevin Walzer wrote: Hi, On 8/12/14, 10:23 AM, JBB wrote: After some more digging, I find that Python uses the macosx backend on initialization. If I change this to tk before beginning work, the problem goes away. My Linux Python uses tk by default. What do you me

Re: [Tkinter-discuss] tkFileDialog.askopenfile() mac

2014-08-12 Thread Kevin Walzer
Hi, On 8/12/14, 10:23 AM, JBB wrote: After some more digging, I find that Python uses the macosx backend on initialization. If I change this to tk before beginning work, the problem goes away. My Linux Python uses tk by default. What do you mean by this? On Mac, Tkinter/Tk uses native dialogs

Re: [Tkinter-discuss] tkFileDialog.askopenfile() mac

2014-08-12 Thread JBB
On 8/12/14, 3:03 PM, Cameron Laird wrote: On Tue, Aug 12, 2014 at 07:23:11AM -0700, JBB wrote: [ Snip ] . Good follow-up, JBB; it helps the rest of us to learn your findings as you describe them here. Tkinter is indeed the official Python GUI toolkit. At the same ti

Re: [Tkinter-discuss] tkFileDialog.askopenfile() mac

2014-08-12 Thread Cameron Laird
On Tue, Aug 12, 2014 at 07:23:11AM -0700, JBB wrote: > On 8/12/14, 1:20 AM, Michael Lange wrote: . . . > Thank you. You are right, askopenfilename is what I want. I wasn't > aware that this method existed. > > After some mo

Re: [Tkinter-discuss] tkFileDialog.askopenfile() mac

2014-08-12 Thread JBB
On 8/12/14, 1:20 AM, Michael Lange wrote: Hi, On Mon, 11 Aug 2014 20:37:38 -0700 JBB wrote: Hello, I am attempting to use tkFileDialog.askopenfile(): 1) On my Mac OSX Mavericks w/ Python 2.7.8, Anaconda 2.0.1 (x86_64) the following code (found via web searches) crashes: from Tkinter import

Re: [Tkinter-discuss] tkFileDialog.askopenfile() mac

2014-08-12 Thread Michael Lange
Hi, On Mon, 11 Aug 2014 20:37:38 -0700 JBB wrote: > Hello, > > I am attempting to use tkFileDialog.askopenfile(): > > 1) On my Mac OSX Mavericks w/ Python 2.7.8, Anaconda 2.0.1 (x86_64) the > following code (found via web searches) crashes: > > from Tkinter import * > import tkFileDialog > r

[Tkinter-discuss] tkFileDialog.askopenfile() mac

2014-08-11 Thread JBB
Hello, I am attempting to use tkFileDialog.askopenfile(): 1) On my Mac OSX Mavericks w/ Python 2.7.8, Anaconda 2.0.1 (x86_64) the following code (found via web searches) crashes: from Tkinter import * import tkFileDialog root = Tk() root.withdraw() file = tkFileDialog.askopenfile(parent=root)