[issue26697] tkFileDialog crash on askopenfilename Python 2.7 64-bit Win7

2020-04-26 Thread Zachary Ware
Zachary Ware added the comment: As 2.7 is now EOL, I'm closing the issue. Thanks for the report anyway, Eric, and I'm sorry we didn't get it looked into before now. -- resolution: -> out of date stage: -> resolved status: open -> closed ___

[issue39370] askopenfilename is missing from the Tkinter filedialog library in 2.7.17

2020-01-17 Thread Ned Deily
Ned Deily added the comment: In Python 2, askopenfilename was in the separate tkFileDialog module: >>> import tkFileDialog >>> dir(tkFileDialog.askopenfilename) ['__call__', ... https://docs.python.org/2/library/tkinter.html?highlight=tkfiledialog#tkinter-modul

[issue39370] askopenfilename is missing from the Tkinter filedialog library in 2.7.17

2020-01-17 Thread Dreas Nielsen
New submission from Dreas Nielsen : In Python 2.7.17 on Linux, the code: import tkinter.filedialog as tkfiledialog dir(tkfiledialog.askopenfilename) results in: AttributeError: 'module' object has no attribute 'askopenfilename' Any attempt to use 'askopenfilename' has the same

[issue22810] tkinter: "alloc: invalid block:" after askopenfilename

2017-07-14 Thread Matthias Kievernagel
Changes by Matthias Kievernagel : -- nosy: +mkiever ___ Python tracker ___ ___

[issue22810] tkinter: "alloc: invalid block:" after askopenfilename

2017-03-02 Thread Todd Goldfinger
Todd Goldfinger added the comment: >> cursor after the '6' follows by '0' The max is 21. See 'to' parameter. I don't know if my code is correct, but it seems to work more or less. Obviously the crash is an issue with tk or Python. -- ___ Python

[issue22810] tkinter: "alloc: invalid block:" after askopenfilename

2017-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think issue27405 could help to make a pure Tcl reproducer. If the same error happen with Tcl version, this is not Python bug. -- ___ Python tracker

[issue22810] tkinter: "alloc: invalid block:" after askopenfilename

2017-03-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks Todd. I ran crash.py on Win10 64 bit, stock PSF 3.6.0 (no anaconda). Put cursor after 2 and hit '0'. Same error, different numbers. alloc: invalid block: 02C8928640D0: 40 93 Followed by Windows' "Python has stopped working" box. Cursor after the

[issue22810] tkinter: "alloc: invalid block:" after askopenfilename

2017-03-01 Thread Todd Goldfinger
Todd Goldfinger added the comment: This crashes reliably on Win10 with the same error message. Place cursor after the 2 in the top spin box. Type 0. I have the following files in Anaconda3/tcl: tcl86t.lib, tcl86tg.lib, tclstub86.lib, tk86t.lib, tk86tg.lib, tkstub86.lib. Python 3.6.0

[issue26697] tkFileDialog crash on askopenfilename Python 2.7 64-bit Win7

2016-04-05 Thread Zachary Ware
Changes by Zachary Ware : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue26697] tkFileDialog crash on askopenfilename Python 2.7 64-bit Win7

2016-04-05 Thread Eric Johnson
c Johnson priority: normal severity: normal status: open title: tkFileDialog crash on askopenfilename Python 2.7 64-bit Win7 type: crash versions: Python 2.7 Added file: http://bugs.python.org/file42374/fileopendialog.py

[issue26405] tkinter askopenfilename doubleclick issue on windows

2016-02-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thus this is not Python bug. -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker

[issue26405] tkinter askopenfilename doubleclick issue on windows

2016-02-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can't reproduce the bug on Linux. Try to run pure Tcl/Tk script (install ActiveTcl and use the "wish" command). If the bug is reproduced, this is Tk bug. -- nosy: +terry.reedy Added file: http://bugs.python.org/file42019/issue26405.tcl

[issue26405] tkinter askopenfilename doubleclick issue on windows

2016-02-23 Thread rapolas
rapolas added the comment: Just tried this on Python 2.7.11 and the issue is not present. -- ___ Python tracker ___

[issue26405] tkinter askopenfilename doubleclick issue on windows

2016-02-22 Thread SilentGhost
Changes by SilentGhost : -- components: +Windows nosy: +gpolo, paul.moore, serhiy.storchaka, steve.dower, tim.golden, zach.ware ___ Python tracker

[issue26405] tkinter askopenfilename doubleclick issue on windows

2016-02-21 Thread rapolas
behavior on two different computers, one running win10, another win7, both using the latest python 3.5.1 installation from python.org -- components: Tkinter messages: 260640 nosy: rapolas priority: normal severity: normal status: open title: tkinter askopenfilename doubleclick issue

Re: Tk alternative to askopenfilename and askdirectory?

2015-12-18 Thread Christian Gollwitzer
Am 16.12.15 um 14:18 schrieb Ulli Horlacher: Is there an alternative to Tk's askopenfilename() and askdirectory()? I want to select a files and directories within one widget, but askopenfilename() let me only select files and askdirectory() let me only select directories. Tk calls out

Re: Tk alternative to askopenfilename and askdirectory?

2015-12-18 Thread Ulli Horlacher
Christian Gollwitzer wrote: > Tk calls out into the native file manager to perform the file/open > operation (on Win, on Unix it brings it's own). This means, on Windows the user gets a "well known" file/directory browser? Then this is an important feature! Anything new and

Re: Tk alternative to askopenfilename and askdirectory?

2015-12-17 Thread Ulli Horlacher
Rick Johnson wrote: > Oh i understand. What you opine for is something like: askOpenFileOrDir() > -- which displays a dialog from which a file or directory can be selected > by the user. Yes, exactly! Now: how? -- Ullrich Horlacher Server und

Re: Tk alternative to askopenfilename and askdirectory?

2015-12-16 Thread Ulli Horlacher
Lorenzo Sutton <lorenzofsut...@gmail.com> wrote: > On 16/12/2015 14:18, Ulli Horlacher wrote: > > Is there an alternative to Tk's askopenfilename() and askdirectory()? > > > > I want to select a files and directories within one widget, but > > askopenfi

Re: Tk alternative to askopenfilename and askdirectory?

2015-12-16 Thread Rick Johnson
On Wednesday, December 16, 2015 at 7:19:25 AM UTC-6, Ulli Horlacher wrote: > Is there an alternative to Tk's askopenfilename() and askdirectory()? > > I want to select a files and directories within one widget, but > askopenfilename() let me only select files and askdirectory()

Tk alternative to askopenfilename and askdirectory?

2015-12-16 Thread Ulli Horlacher
Is there an alternative to Tk's askopenfilename() and askdirectory()? I want to select a files and directories within one widget, but askopenfilename() let me only select files and askdirectory() let me only select directories. -- Ullrich Horlacher Server und Virtualisierung

Re: Tk alternative to askopenfilename and askdirectory?

2015-12-16 Thread Lorenzo Sutton
On 16/12/2015 14:18, Ulli Horlacher wrote: Is there an alternative to Tk's askopenfilename() and askdirectory()? I want to select a files and directories within one widget, but askopenfilename() let me only select files and askdirectory() let me only select directories. I guess it would

askopenfilename() (was: Re: non-blocking getkey?)

2015-11-28 Thread Ulli Horlacher
windows, find your console window and switch to it. > > > > You can call GetConsoleWindow [1] and then SetForegroundWindow [2]. > (...) > > great, this works! Thanks! One of my Windows test users reports, that the file dialog window of askopenfilename() starts behind

Re: askopenfilename()

2015-11-28 Thread Christian Gollwitzer
Am 28.11.15 um 11:29 schrieb Ulli Horlacher: One of my Windows test users reports, that the file dialog window of askopenfilename() starts behind the console window and has no focus. On Linux (XFCE) I do not have this problem. I start it with: Tk().withdraw() file = askopenfilename(title

Re: askopenfilename()

2015-11-28 Thread Christian Gollwitzer
Am 28.11.15 um 13:48 schrieb Ulli Horlacher: Christian Gollwitzer wrote: Many problems would simply go away if you wrote the whole thing as a GUI program. Too much hassle. The predecessor was a Perl/Tk program and I have had to invest 90% of the programming work into the GUI

Re: askopenfilename()

2015-11-28 Thread Ulli Horlacher
Christian Gollwitzer <aurio...@gmx.de> wrote: > Am 28.11.15 um 11:29 schrieb Ulli Horlacher: > > One of my Windows test users reports, that the file dialog window of > > askopenfilename() starts behind the console window and has no focus. > > On Linux (XFCE) I do not h

Re: askopenfilename()

2015-11-28 Thread Ulli Horlacher
Ulli Horlacher <frams...@rus.uni-stuttgart.de> wrote: > One of my Windows test users reports, that the file dialog window of > askopenfilename() starts behind the console window and has no focus. I have got a followup: this happens only with Windows XP, not with Windows 7.

Re: askopenfilename()

2015-11-28 Thread Ulli Horlacher
Christian Gollwitzer wrote: > Am 28.11.15 um 13:48 schrieb Ulli Horlacher: > > Christian Gollwitzer wrote: > >> Many problems would simply go away if you wrote the whole thing as a GUI > >> program. > > > > Too much hassle. > > The predecessor was a Perl/Tk

Re: askopenfilename()

2015-11-28 Thread Laura Creighton
Maybe Wei Li Jiang's hack will work for you? http://stackoverflow.com/questions/3375227/how-to-give-tkinter-file-dialog-focus But then see if it works under MacOS. I fear it will not. Laura -- https://mail.python.org/mailman/listinfo/python-list

[issue25309] askopenfilename crashes on XP with "Show pop-up description for folder and desktop items" on

2015-10-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Your report is good except for defining what you mean by crash and how you ran pickfile.py. (I assume 3.4 with tk 8.6 from your version selection.). (There is also the comment-per-line style. I know that some nasty books and profs inflict this style on new

[issue25309] askopenfilename crashes on XP with "Show pop-up description for folder and desktop items" on

2015-10-04 Thread alex wieder
alex wieder added the comment: Terry, thanks for your feedback. By crash, I mean python crashing with a Windows c005 error. I can't even capture that exception in a try...except structure. This is on an Intel Core2Duo 2.7GHz with 4 GB of RAM, with Acrobat Reader X installed, which might

[issue25309] askopenfilename crashes on XP with "Show pop-up description for folder and desktop items" on

2015-10-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please test Tcl version of your example. wish pickfile.tcl -- nosy: +serhiy.storchaka Added file: http://bugs.python.org/file40673/pickfile.tcl ___ Python tracker

[issue25309] askopenfilename crashes on XP with "Show pop-up description for folder and desktop items" on

2015-10-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: The Windows error, as opposed to Python traceback, is a crash. My machine is probably too fast even if it did have XP. Serhiy: 'wish' is not a normal Windows command.

[issue25309] askopenfilename crashes on XP with "Show pop-up description for folder and desktop items" on

2015-10-04 Thread alex wieder
alex wieder added the comment: wish pickfile.tcl? Sorry. Too cryptic for me. I ran the following code from the python interpreter: import tkinter as tk tk.TclVersion tk.TkVersion Both return 8.6. -- ___ Python tracker

[issue25309] askopenfilename crashes on XP with "Show pop-up description for folder and desktop items" on

2015-10-03 Thread alex wieder
anymore, but I have plenty of clients still on it). I suggest that you test this in more recent Windows versions as well. To reproduce: - Enable "Show Pop-up description for folder and desktop items" in Explorer->Tools->Folder Options->View. - Create a small python script that opens

[issue25309] askopenfilename crashes on XP with "Show pop-up description for folder and desktop items" on

2015-10-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue25309] askopenfilename crashes on XP with "Show pop-up description for folder and desktop items" on

2015-10-03 Thread Martin Panter
Changes by Martin Panter : -- nosy: +martin.panter ___ Python tracker ___ ___

[issue22810] tkinter: alloc: invalid block: after askopenfilename

2015-07-03 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +tomnor ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22810 ___ ___ Python-bugs-list

[issue22810] tkinter: alloc: invalid block: after askopenfilename

2015-07-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tomas Nordin reported on #24524 (will close as dup) that a similar script crashes python 2.7.9 on Linux debian. -- nosy: +terry.reedy versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org

[issue22810] tkinter: alloc: invalid block: after askopenfilename

2015-07-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- type: enhancement - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22810 ___ ___

[issue22810] tkinter: alloc: invalid block: after askopenfilename

2015-07-03 Thread Roch Guillot
Changes by Roch Guillot rochsilver...@gmail.com: -- type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22810 ___ ___

[issue22810] tkinter: alloc: invalid block: after askopenfilename

2015-07-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Windows 7, no problem on either 2.7.10 or 3.5.0b2 (running from Command Prompt so would see message is there were one). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22810

[issue22810] tkinter: alloc: invalid block: after askopenfilename

2014-11-07 Thread Serhiy Storchaka
/tkinter/filedialog.py, line 375, in askopenfilename return Open(**options).show() File /usr/lib/python3.4/tkinter/commondialog.py, line 48, in show s = w.tk.call(self.command, *w._options(self.options)) _tkinter.TclError: can't invoke grab command: application has been destroyed

[issue22810] tkinter: alloc: invalid block: after askopenfilename

2014-11-07 Thread lccat
filename = tkinter.filedialog.askopenfilename() File /usr/lib/python3.4/tkinter/filedialog.py, line 375, in askopenfilename return Open(**options).show() File /usr/lib/python3.4/tkinter/commondialog.py, line 48, in show s = w.tk.call(self.command, *w._options(self.options

[issue22810] tkinter: alloc: invalid block: after askopenfilename

2014-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: When first close the file dialog (by pressing either Open, or Cancel, or close window button, or Alt-F4 keystroke), I don't see any output at all. What Tk version (tkinter.TkVersion) is used? What Linux distribution name and version are? --

[issue22810] tkinter: alloc: invalid block: after askopenfilename

2014-11-07 Thread lccat
lccat added the comment: print(TkVersion) 8.6 Tk version in package manager: python-pmw 2.0.0-2 Distribution: arch linux, kernel 3.17.2-1-ARCH -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22810

[issue22810] tkinter: alloc: invalid block: after askopenfilename

2014-11-06 Thread lccat
the program as far as i can see. Also happens for the directory selector. Platform is linux. -- components: Tkinter files: tktest.py messages: 230768 nosy: lccat priority: normal severity: normal status: open title: tkinter: alloc: invalid block: after askopenfilename versions: Python 3.4 Added

Re: tkinter: get filename of askopenfilename

2009-06-25 Thread Sean McIlroy
i think what he means is to put the global declaration inside the function that assigns to filename: def open_file_dialog(): global filename filename = tkFileDialog.askopenfilename(filetypes= [(allfiles,*)]) as it was, the function was creating a new variable called filename and

Re: tkinter: get filename of askopenfilename

2009-06-25 Thread rom
Thanks again. After your replies, I have understood how to do what I wanted. What I wanted to do is to get a value after clicking a button and use it in another part of the program. As you said, after getting the value, I have to store it in a global variable. However, the program does not do

Re: tkinter: get filename of askopenfilename

2009-06-25 Thread norseman
rom wrote: Thanks for your response. I have modified this minimal program as you suggested but still is not able to print the filename: ## import Tkinter import tkFileDialog global filename # NO NO NO! No global line here filename='' root = Tkinter.Tk()

Re: tkinter: get filename of askopenfilename

2009-06-25 Thread norseman
rom wrote: Ok. I think I got it. I have to do it in this way: ### import Tkinter import tkFileDialog filename='' root = Tkinter.Tk() Tkinter.Button(root, text='Notch genes...', command=lambda: open_file_dialog()).pack() def open_file_dialog(): global filename

Re: tkinter: get filename of askopenfilename

2009-06-25 Thread norseman
rom wrote: Thanks again. After your replies, I have understood how to do what I wanted. What I wanted to do is to get a value after clicking a button and use it in another part of the program. As you said, after getting the value, I have to store it in a global variable. However, the program

tkinter: get filename of askopenfilename

2009-06-24 Thread rom
Hi there, I am writing an interface with Tkinter. My minimal program looks like this: # import Tkinter import tkFileDialog root = Tkinter.Tk() Tkinter.Button(root, text='Notch genes...', command=lambda: open_file_dialog()).pack() def open_file_dialog(): filename =

Re: tkinter: get filename of askopenfilename

2009-06-24 Thread norseman
rom wrote: Hi there, I am writing an interface with Tkinter. My minimal program looks like this: # import Tkinter import tkFileDialog # define globals here filename= '' # will take care of the problem root = Tkinter.Tk() Tkinter.Button(root, text='Notch genes...',

Re: tkinter: get filename of askopenfilename

2009-06-24 Thread norseman
OOPS - I left out the global statement rom wrote: Hi there, I am writing an interface with Tkinter. My minimal program looks like this: # import Tkinter import tkFileDialog # define globals here filename= '' # will take care of the problem root = Tkinter.Tk()

Re: tkinter: get filename of askopenfilename

2009-06-24 Thread rom
Thanks for your response. I have modified this minimal program as you suggested but still is not able to print the filename: ## import Tkinter import tkFileDialog global filename filename='' root = Tkinter.Tk() Tkinter.Button(root, text='Notch genes...', command=lambda:

Re: tkinter: get filename of askopenfilename

2009-06-24 Thread rom
Ok. I think I got it. I have to do it in this way: ### import Tkinter import tkFileDialog filename='' root = Tkinter.Tk() Tkinter.Button(root, text='Notch genes...', command=lambda: open_file_dialog()).pack() def open_file_dialog(): global filename filename =

Re: tkinter, askopenfilename, initial directory

2008-08-11 Thread Gabriel Genellina
En Thu, 07 Aug 2008 19:08:56 -0300, Lisa Frauens [EMAIL PROTECTED] escribi�: I see there is an initial directory option in askopenfilename. However, I want the initial directory to be the last directory used in a prior execution of my script. Is there a way to force the askopenfilename

tkinter, askopenfilename, initial directory

2008-08-07 Thread Lisa Frauens
I see there is an initial directory option in askopenfilename. However, I want the initial directory to be the last directory used in a prior execution of my script. Is there a way to force the askopenfilename to the previous initial directory easily using information somewhere (I know

askopenfilename() as root window

2007-12-18 Thread Sean DiZazzo
Is there any way to open a Tkinter.askopenfilename() without opening a root window alongside the file chooser? I simply want a script to open a dialog and return the chosen file's path to stdout. from tkFileDialog import askopenfilename print askopenfilename() ...does the job, but it opens

Re: askopenfilename() as root window

2007-12-18 Thread Gabriel Genellina
can call the withdraw() method: root = Tk() root.withdraw() print askopenfilename() -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: askopenfilename() as root window

2007-12-18 Thread Sean DiZazzo
the chosen file's path to stdout. Yes, create the root yourself so you can call the withdraw() method: root = Tk() root.withdraw() print askopenfilename() -- Gabriel Genellina As usual... Thank you Gabriel. -- http://mail.python.org/mailman/listinfo/python-list

Remote askopenfilename()

2007-01-02 Thread half . italian
Hi all. I'm trying to get Tkinter.askopenfilename() to list a directory tree on a remote computer. I've got some ideas, but nothing is slapping me in the face. Can someone point me in the right direction? ~Sean -- http://mail.python.org/mailman/listinfo/python-list