[Tkinter-discuss] Adding <Command-Button-1> to a Listbox

Bob Greschke bob at passcal.nmt.edu
Sun Jun 7 21:39:35 CEST 2009


On Jun 7, 2009, at 13:25, Kevin Walzer wrote:

> Bob Greschke wrote:
>
>> Hmmm.  This didn't seem to do anything (not even an error  
>> message).  After some more fooling around it looks like the the  
>> Command key isn't acknowledged at all on my Mac (either running  
>> apps on a Sun via ssh, or running them directly on my Mac).  I'm  
>> running "our own" version of Python/Tkinter( so we don't get the  
>> Aqua-based version), and also the XQuartz guys' version of X11 (I  
>> messed with the keyboard preferences in there, but it didn't seem  
>> to do anything).  The build of our Python/Tkinter may have  
>> something to do with it.  I'll check with the guys that make our  
>> package.  There might be some switch that needs to be flipped.
>>
>
> The Command key isn't supported under X11--the Control key is.  
> Command is a Mac (Aqua) -specific keysym.
> -- 
> Kevin Walzer
> Code by Kevin
> http://www.codebykevin.com
>

I'll buy that.  The Command key (and the Option key) are listed in  
Grayson as valid modifiers, so I thought they would work since the  
book came out way back when (2000).

Thanks!

Bob



More information about the Tkinter-discuss mailing list