[issue30200] tkinter ListboxSelect

2017-05-01 Thread Frank Pae
Frank Pae added the comment: Here some detailed information about Tcl / Tk versions: platform Windows-10-10.0.14393 AMD64 python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] tkinterTcl/Tk 8.6.6 / 8.6.6 python 3.5.3 (v3.5.3:1880cb95a742, Jan 16 201

[issue30200] tkinter ListboxSelect

2017-04-30 Thread Louie Lu
Louie Lu added the comment: ah, I think Terry point out the problem behind why my 2.7 and Frank's 2.7 have different behavior. I'm using tk 8.6.6-1 on Linux, and it may be the problem from tk version. -- ___ Python tracker

[issue30200] tkinter ListboxSelect

2017-04-30 Thread Frank Pae
Frank Pae added the comment: I am not a profi, just a normal user, i do what i can so good i can I would like to thank all python developers (AND: I think your last question ist the right question) -- resolution: -> not a bug stage: test needed -> resolved status: open -> closed

[issue30200] tkinter ListboxSelect

2017-04-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Frank, bigger is not better for demonstrating a problem. The only thing needed for this issue is a tk window with two list boxes. Having to click twice to get a window with more than just the two Listboxes is just noise. Anyway, I downloaded the file as te

[issue30200] tkinter ListboxSelect

2017-04-29 Thread Frank Pae
Changes by Frank Pae : Added file: http://bugs.python.org/file46840/py3.6.1.gif ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue30200] tkinter ListboxSelect

2017-04-29 Thread Frank Pae
Changes by Frank Pae : Added file: http://bugs.python.org/file46839/py3.5.3.gif ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue30200] tkinter ListboxSelect

2017-04-29 Thread Frank Pae
Changes by Frank Pae : Added file: http://bugs.python.org/file46838/py2.7.13.gif ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue30200] tkinter ListboxSelect

2017-04-29 Thread Frank Pae
Changes by Frank Pae : Removed file: http://bugs.python.org/file46835/py3.5.3.gif ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue30200] tkinter ListboxSelect

2017-04-29 Thread Frank Pae
Changes by Frank Pae : Removed file: http://bugs.python.org/file46837/py2.7.13.gif ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue30200] tkinter ListboxSelect

2017-04-29 Thread Frank Pae
Changes by Frank Pae : Removed file: http://bugs.python.org/file46836/py3.6.1.gif ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue30200] tkinter ListboxSelect

2017-04-29 Thread Frank Pae
Frank Pae added the comment: Thanks for the answers Can you please explain why python 3.6 requires another treatment? In 2.7 und 3.5 I do not need that Thank you -- ___ Python tracker ___

[issue30200] tkinter ListboxSelect

2017-04-29 Thread Louie Lu
Louie Lu added the comment: This behavior is as same as on my Linux Python 2.7.13: (, (2,)) # Select Font (, (3,)) # Select Style (, ()) # Deselect Font And also, you don't need a try expect to handle this situation. You can see that when de-select the listbox, curselection() will return a

[issue30200] tkinter ListboxSelect

2017-04-29 Thread Louie Lu
Louie Lu added the comment: I think this is only a normal behavior now. Generate two events make sense, they are generate by different widget: .!editor.!font_dialog.!frame.!frame.!listbox (0,) # Select Font .!editor.!font_dialog.!frame2.!frame.!listbox (0,) # Select Style .!editor.!font_dia

[issue30200] tkinter ListboxSelect

2017-04-29 Thread Frank Pae
Frank Pae added the comment: it works in py 2.7 and 3.5 normal there must be a change in 3.6, intended or unintentional this is my Workaround: def get_size(event): # self.size.set(listbox_size.get(listbox_size.curselection())) # TEST > ok=True try: lb_siz_cur =

[issue30200] tkinter ListboxSelect

2017-04-29 Thread Louie Lu
Louie Lu added the comment: But I'm not sure if this is a behavior error or something else, I'm still trying to find the root cause. -- ___ Python tracker ___ __

[issue30200] tkinter ListboxSelect

2017-04-28 Thread Louie Lu
Louie Lu added the comment: The problem cause by listbox.curselection(). When crossing from a listbox to another listbox, it will trigger twice event. The first time get a valid select tuple from curselection() (which will return (index, label)), and the second time will generate empty tuple.

[issue30200] tkinter ListboxSelect

2017-04-28 Thread Frank Pae
Frank Pae added the comment: i have added my picture for 2.7.13 i mean there is no problem -- Added file: http://bugs.python.org/file46837/py2.7.13.gif ___ Python tracker ___ _

[issue30200] tkinter ListboxSelect

2017-04-28 Thread Louie Lu
Louie Lu added the comment: I can reproduce the problem at 2.7.13 on Linux. Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1542, in __call__ return self.func(*args) File "tests.py", line 174, in get_style lb_sty_get

[issue30200] tkinter ListboxSelect

2017-04-28 Thread Frank Pae
Frank Pae added the comment: thank you for your answer sorry for the "Long" code, but sometime is an longer example better than many words (and the most code is for layout, please fold with PyCharm) i use "original" Python with tcl/tk as it is in the installer in my gif-pictures you can see my

[issue30200] tkinter ListboxSelect

2017-04-28 Thread Frank Pae
Changes by Frank Pae : Added file: http://bugs.python.org/file46836/py3.6.1.gif ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue30200] tkinter ListboxSelect

2017-04-28 Thread Frank Pae
Changes by Frank Pae : Added file: http://bugs.python.org/file46835/py3.5.3.gif ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue30200] tkinter ListboxSelect

2017-04-28 Thread Frank Pae
Changes by Frank Pae : Added file: http://bugs.python.org/file46834/tk_ListboxSelect.py ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue30200] tkinter ListboxSelect

2017-04-28 Thread Frank Pae
Changes by Frank Pae : Removed file: http://bugs.python.org/file46833/tk_ListboxSelect.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue30200] tkinter ListboxSelect

2017-04-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Bug examples should be the bare minimum of code needed to reproduce the problem, not a dump of (failing) application code. See, for instance, https://stackoverflow.com/help/mcve. http://www.tcl.tk/man/tcl8.6/TkCmd/listbox.htm says "Any time the set of select

[issue30200] tkinter ListboxSelect

2017-04-28 Thread Frank Pae
New submission from Frank Pae: prerequisite: you have more than one tkinter listbox behavior in py 2.7.13 and py 3.5.3: if you leave a listbox and goes to another, then the abandoned listbox create not a ListboxSelect Event behavior in py 3.6.0 and 3.6.1: if you leave a listbox and goes to an