[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2014-07-08 Thread Som Veettil

Som Veettil added the comment:

@Serhiy Storchaka - its Python 2.7.6

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2014-07-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This bug was fixed in 2.7.7.

--
resolution:  - duplicate
status: open - closed
superseder:  - Regression: Windows-tkinter-idle, unicode, and 0xxx filename

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2014-07-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Som, what is full version of your Python?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2014-07-02 Thread Som Veettil

Som Veettil added the comment:

i had similar issue with python 2.7.. works fine with fix provided by vijay 
(luckycusp)
msg107935 - (view) - http://bugs.python.org/msg107935

thanks a lot.

--
nosy: +som_veettil

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2014-02-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you Martin.

May be this issue was fixed in issue19020.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2013-12-10 Thread Martin Miller

Martin Miller added the comment:

Answering Serhiy Storchaka's question: Yes it's still reproducible with 2.7.6.

--
nosy: +martinmiller

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2013-12-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

What are values of Tkinter.wantobjects, Tkinter._support_default_root, 
Tkinter._default_root, Tkinter._default_root.wantobjects()? Before and after 
calling tkFileDialog.askopenfilenames().

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2013-12-10 Thread Martin Miller

Martin Miller added the comment:

Requested information:

Before  
Tkinter.wantobjects: 1  
Tkinter._support_default_root: 1
Tkinter._default_root: None 
Tkinter._default_root has no attribute 'wantobjects'

After   
Tkinter.wantobjects: 1  
Tkinter._support_default_root: 1
Tkinter._default_root: .
Tkinter._default_root.wantobjects(): True

--
Added file: http://bugs.python.org/file33083/python_issue_5712.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2013-09-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Is it still reproducible on 2.7?

--
nosy: +serhiy.storchaka
versions:  -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2013-03-20 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2ce557101136 by R David Murray in branch '3.2':
#5712: Preemptively fix some other possible timing issues.
http://hg.python.org/cpython/rev/2ce557101136

New changeset c412ca9aa915 by R David Murray in branch '3.3':
Merge: #5712: Preemptively fix some other possible timing issues.
http://hg.python.org/cpython/rev/c412ca9aa915

New changeset 5b0669ff19c5 by R David Murray in branch 'default':
Merge: #5712: Preemptively fix some other possible timing issues.
http://hg.python.org/cpython/rev/5b0669ff19c5

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2013-03-20 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
Removed message: http://bugs.python.org/msg184831

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2010-11-08 Thread Peter Hall

Peter Hall peter.f.h...@nasa.gov added the comment:

There seems some similarity between this issue and issue #10316 which occurs on 
Linux.

--
nosy: +pfhall

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2010-06-16 Thread vijay

vijay vijay.psaib...@gmail.com added the comment:

Two issues related with the workaround suggested by nosklo.

1. Splitting the filepaths isnt simple, as there may be blank spaces etc.
2. We have different versions of Python installed in our Lab machines, some 
have 2.5 and others got 2.6. If I run the code using the version2.6 workaround 
on a machine with version2.5, obviously it gives an error!!

Any updates on a fix? This bug is really giving me a hard time.

--
nosy: +luckycusp

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2010-06-16 Thread vijay

vijay vijay.psaib...@gmail.com added the comment:

Update!! I found a very good workaround for this and it works very nicely, with 
both 2.5 and 2.6 versions. 

Below is the segment from my code:-

from Tkinter import *
import tkFileDialog

master = Tk()
master.withdraw() #hiding tkinter window

Inputfiles = tkFileDialog.askopenfilenames(title=Select the source input 
file(s), filetypes=[(mpf file,.mpf),(All files,.*)])

#Heres the TRICK!
InputfilesList =  master.tk.splitlist(Inputfiles)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2010-06-16 Thread Clovis Fabricio

Clovis Fabricio nosklo+pyt...@gmail.com added the comment:

UGH! Sorry for that, I mispasted something and didn't notice, since it filled 
the comment entry box perfectly :(

This is the real message I meant to paste:



vijay,

The workaround I provided above takes the blank spaces in filepaths
you mention into account and splits the paths correctly in all
situations I can think of. I'm using it in production now for over an
year, and had no issues at all. Perhaps you can provide an example of
path that would break the code, so it can be fixed.

thanks in advance
Clovis

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2010-06-16 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2010-06-16 Thread vijay

vijay vijay.psaib...@gmail.com added the comment:

Hi Clovis

Ok, I did not check if your split string function check for spaces or not, 
sorry for that. 

In my first post I mentioned this:-

2. We have different versions of Python installed in our Lab machines, some 
have 2.5 and others got 2.6. If I run the code using the version2.6 workaround 
on a machine with version2.5, obviously it gives an error!!

Infact I started out using your split string function but it was on a machine 
with Python2.6. It worked fine. Then I ran the same code on a machine with 
version Python2.5 and it threw an error when I tried calling your function, 
because the argument I passed to your function was already a tuple and not a 
string!! (I hope I could explain without confusing)

I would prefer my code to have some level of downward compatibility (to be able 
to run on Python of lower versions). Thats the reason I prefer to use the 
'splitlist' method from Tkinter, as I dont need to change my code for different 
Python versions.

Best Regards
Vijay

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2010-04-02 Thread Clovis Fabricio

Changes by Clovis Fabricio nosklo+pyt...@gmail.com:


--
versions: +Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2010-03-11 Thread Dan Halbert

Changes by Dan Halbert halb...@halwitz.org:


--
nosy: +dhalbert

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2010-01-29 Thread Clovis Fabricio

Clovis Fabricio nosklo+pyt...@gmail.com added the comment:

I've written a quick workaround for the issue, where I manually split the 
filenames and always return a tuple.

It might be useful to someone experiencing this problem, so I'm adding it to 
the issue here.

--
nosy: +nosklo
Added file: http://bugs.python.org/file16041/issue5712_workaround.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2009-08-04 Thread Gabriel Genellina

Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:

With 2.6.2 on Windows, I get filenames surrounded by {}, all in a 
single unicode string.
The change may be related to the new Tk library used, not directly the 
tkFileDialog module.

(BTW, I don't see *any* unit tests for tkinter :( )

--
nosy: +gagenellina

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2009-08-04 Thread Guilherme Polo

Guilherme Polo ggp...@gmail.com added the comment:

 With 2.6.2 on Windows, I get filenames surrounded by {}, all in a
 single unicode string.

This string surrounded by { } indicates it is supposed to be a tcl
list, which didn't get converted but should be done by tkFileDialog.

 The change may be related to the new Tk library used, not directly the
 tkFileDialog module.


It could be, or not. A simple solution would be to call the splitlist
function from _tkinter on that string, which tkFileDialog should be
doing indifferently of expecting objects from _tkinter or not.

 (BTW, I don't see *any* unit tests for tkinter :( )


There are some one a separated branch for now, but it doesn't include
tkFileDialog yet.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2009-08-03 Thread Guilherme Polo

Changes by Guilherme Polo ggp...@gmail.com:


--
nosy: +gpolo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2009-04-06 Thread daku9999

New submission from daku daku9...@gmail.com:

from tkFileDialog import askopenfilenames

a = askopenfilenames()
print a
print type(a)

'''
--output--
J:/PortablePython_1.1_py2.6.1/Aatest26/tk_new/rgb2hex.py
J:/PortablePython_1.1_py2.6.1/Aatest26/tk_new/bluebtn.jpg
J:/PortablePython_1.1_py2.6.1/Aatest26/tk_new/redbtn.jpg
type 'unicode'
'''

 behaviour seen on windows xp 2.6.1 python release.  Linux
distributions seem fine.
 parsing above string (as it's not a tuple anymore) is difficult as
it is a list of filenames separated by a space but spaces can be in the
middle of filenames.

--
components: Tkinter
messages: 85658
nosy: daku
severity: normal
status: open
title: tkinter - askopenfilenames returns string instead of tuple in windows 
2.6.1 release
type: behavior
versions: Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com