Mailing List Archive

[ python-Bugs-1774736 ] Binding <Control-space> fails
Bugs item #1774736, was opened at 2007-08-15 18:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1774736&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tkinter
Group: Python 3000
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ali Gholami Rudi (aligrudi)
Assigned to: Martin v. Löwis (loewis)
Summary: Binding <Control-space> fails

Initial Comment:
In py3k branch r57057, when I run::

import Tkinter

tk = Tkinter.Tk()
text = Tkinter.Text(tk)

def callback(event=None):
return

text.bind('<Control-space>', callback)
text.pack()
text.focus_set()
tk.mainloop()


when I press C-space I get this exception::

Traceback (most recent call last):
File "spacefailure.py", line 13, in <module>
tk.mainloop()
File "/usr/local/lib/python3.0/lib-tk/Tkinter.py", line 1022, in mainloop
self.tk.mainloop(n)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: illegal encoding

The strange thing about it is that other bindings work
as expected.

I'm running on ubuntu feisty.


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1774736&group_id=5470
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com