[issue10731] UnicodeDecodeError in OS X tkinter when binding to
Marc Culler added the comment: I am running OSX 10.5.8 on this macbook. The Tcl/Tk package on the system is ActiveState Tcl/Tk 8.4.19. I just installed Python 3.2 (r32:88452, Feb 20 2011, 10:19:59) from http://www.python.org/getit/releases/3.2/ and I am still seeing this bug. It does not occur with the Python 2.7 Tkinter package, which uses the same Tcl/Tk framework. So if it is a bug in Tk, it is harmless when used with Python 2.7. But, after all, it is not so surprising to see new UnicodeDecodeErrors when porting from Python 2 to Python 3. -- versions: +Python 3.2 -Python 3.1 ___ Python tracker <http://bugs.python.org/issue10731> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10731] UnicodeDecodeError in OS X tkinter when binding to
New submission from Marc Culler : In OS X tkinter the "two-finger scroll" generates events. The following code: bug.py import tkinter def mouse_wheel(event): print('Mouse wheel event') tk = tkinter.Tk() list = tkinter.Listbox(tk) list.bind('', mouse_wheel) for n in range(20): list.insert(tkinter.END, str(n**n)) list.pack(fill=tkinter.BOTH, expand=1) tk.mainloop() often throws a UnicodeDecodeError exception with a traceback like the one shown below when you do a "two-finger scroll" in the window. Traceback (most recent call last): File "bug.py", line 12, in tk.mainloop() File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/tkinter/__init__.py", line 1009, in mainloop self.tk.mainloop(n) UnicodeDecodeError: 'utf8' codec can't decode byte 0x84 in position 1: unexpected code byte The value of the byte changes from time to time, and sometimes it may be possible to scroll a few times without producing the error. This problem did not occur on my Mandriva 2010.2 system. I think it is specific to the Macintosh. It might possibly be related to: http://bugs.python.org/issue834351 -- components: Tkinter messages: 124287 nosy: culler priority: normal severity: normal status: open title: UnicodeDecodeError in OS X tkinter when binding to type: crash versions: Python 3.1 ___ Python tracker <http://bugs.python.org/issue10731> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10731] UnicodeDecodeError in OS X tkinter when binding to
Marc Culler added the comment: Thanks, Ned! It seems to be completely fixed by 8.5.12. -- nosy: +Marc.Culler ___ Python tracker <http://bugs.python.org/issue10731> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6124] Tkinter should support the OS X zoom button
New submission from Marc Culler : As far as I can tell, no Tkinter event or pseudo event is generated by clicking the green "zoom" button on Mac OS X windows. This makes it impossible to support that OS X paradigm in a Tkinter application. I would like to be able to bind "<>" to a command that resizes the window according to the OS X UI guidelines. By the way, the guidelines specify that the interpretation of "zoom" depends on the application, and the effect need not be the same as "maximize". -- components: Tkinter messages: 88419 nosy: culler severity: normal status: open title: Tkinter should support the OS X zoom button type: feature request ___ Python tracker <http://bugs.python.org/issue6124> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6015] Tkinter Scrollbar in OS X 10.5
Marc Culler added the comment: I have the same issues with Python 2.6 code I have written. In OS X 10.4 the scrollbars work correctly with a Tkinter Text widget. The same code running in 10.5 exhibits this erratic behavior. It appears as though mouse movement events are queued up, causing the mouse to get ahead of the scrollbar. Later, at some random time, it appears as though the queued events get processed all at once, causing the scrollbar to leap ahead of the mouse. The scrollbar widget display also becomes corrupted at times, with the blue color from the slider being written into the buttons at the bottom. -- components: +Tkinter -IDLE nosy: +culler title: Scrollbar in Idle os x 10.5 -> Tkinter Scrollbar in OS X 10.5 type: -> performance versions: +Python 2.6 -Python 3.1 ___ Python tracker <http://bugs.python.org/issue6015> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com