[issue38661] Changes to tkinter result in (unexpected) widget map call return changes wrt. 3.7
Change by Juliette Monsel : -- nosy: +j-4321-i ___ Python tracker <https://bugs.python.org/issue38661> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31485] Tkinter widget.unbind(sequence, funcid) unbind all bindings
New submission from Juliette Monsel: I am using python 3.6.2 with tk 8.6.7 in Linux and when I call widget.unbind(, funcid), it unbinds all bindings for , while I would expect it to unbind only funcid. Here is an example reproducing the problem: import tkinter as tk root = tk.Tk() def cmd1(event): print('1') def cmd2(event): print('2') def unbind1(): l.unbind('', b1) def unbind2(): l.unbind('', b2) l = tk.Label(root, text='Hover') b1 = l.bind('', cmd1) b2 = l.bind('', cmd2, True) l.pack() tk.Button(root, text='Unbind 1', command=unbind1).pack() tk.Button(root, text='Unbind 2', command=unbind2).pack() root.mainloop() In this example, clicking on one of the buttons unbinds both bindings instead of only one. -- components: Tkinter messages: 302256 nosy: j-4321-i priority: normal severity: normal status: open title: Tkinter widget.unbind(sequence, funcid) unbind all bindings type: behavior versions: Python 3.6 ___ Python tracker <https://bugs.python.org/issue31485> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31485] Tkinter widget.unbind(sequence, funcid) unbind all bindings
Juliette Monsel added the comment: I have found a workaround to unbind a single binding (inspired by https://mail.python.org/pipermail/tkinter-discuss/2012-May/003151.html): def unbind(widget, seq, funcid): bindings = {x.split()[1][3:]: x for x in widget.bind(seq).splitlines() if x.strip()} try: del bindings[funcid] except KeyError: raise tk.TclError('Binding "%s" not defined.' % funcid) widget.bind(seq, '\n'.join(list(bindings.values( -- ___ Python tracker <https://bugs.python.org/issue31485> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31485] Tkinter widget.unbind(sequence, funcid) unbind all bindings
Juliette Monsel added the comment: I don't mind writing a patch and opening a pull request, however I don't know which corner cases I need to take into account. -- ___ Python tracker <https://bugs.python.org/issue31485> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34829] Add missing selection_ methods to tkinter Spinbox
New submission from Juliette Monsel : Though the text area of the tkinter Spinbox behaves like an Entry, the methods selection_from, selection_range, selection_present and selection_to have not been implemented. So for consistency with the Entry widget, I suggest to add them. -- components: Tkinter messages: 326614 nosy: j-4321-i priority: normal severity: normal status: open title: Add missing selection_ methods to tkinter Spinbox type: enhancement ___ Python tracker <https://bugs.python.org/issue34829> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34829] Add missing selection_ methods to tkinter Spinbox
Change by Juliette Monsel : -- keywords: +patch pull_requests: +9016 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34829> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34936] tkinter.Spinbox.selection_element() raises TclError
New submission from Juliette Monsel : Spinbox.selection_element() raises `TclError: expected integer but got "none"` while it should return the currently selected element according to the docstring. I think this issue comes from the Spinbox.selection method which tries to convert to int the output of self.tk.call((self._w, 'selection', 'element')) while it returns a string ("none", "buttonup" or "buttondown"). -- components: Tkinter messages: 327359 nosy: j-4321-i priority: normal severity: normal status: open title: tkinter.Spinbox.selection_element() raises TclError type: behavior versions: Python 3.7 ___ Python tracker <https://bugs.python.org/issue34936> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34936] tkinter.Spinbox.selection_element() raises TclError
Change by Juliette Monsel : -- keywords: +patch pull_requests: +9146 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue34936> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23831] tkinter canvas lacks of moveto method.
Change by Juliette Monsel : -- nosy: +j-4321-i ___ Python tracker <https://bugs.python.org/issue23831> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23831] tkinter canvas lacks of moveto method.
Juliette Monsel added the comment: I am willing to create a pull request with the code provided in msg239745 , to add tests and a what's new entry. However I am not sure about how to acknowledge the contribution of msg239745's author. -- ___ Python tracker <https://bugs.python.org/issue23831> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23831] tkinter canvas lacks of moveto method.
Change by Juliette Monsel : -- keywords: +patch pull_requests: +9155 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue23831> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34936] tkinter.Spinbox.selection_element() raises TclError
Change by Juliette Monsel : -- pull_requests: +9304 ___ Python tracker <https://bugs.python.org/issue34936> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com