Re: Key Binding Problem

2016-03-24 Thread Wildman via Python-list
On Thu, 24 Mar 2016 21:43:26 -0400, Dennis Lee Bieber wrote: > On Thu, 24 Mar 2016 11:19:52 -0500, Wildman via Python-list > declaimed the following: > >> >>I believe I understand. Thanks. If you can't tell, I'm new to >>Python so the learning process is on-going. > > And you decided to

Re: Key Binding Problem

2016-03-24 Thread Wildman via Python-list
On Thu, 24 Mar 2016 08:06:28 -0400, Dennis Lee Bieber wrote: > On Wed, 23 Mar 2016 21:17:57 -0500, Wildman via Python-list > declaimed the following: > >> >>I was referring to procedures called by a button click as >>opposed to a procedure calledd from elsewhere in the code. >>I guess there is n

Re: Key Binding Problem

2016-03-23 Thread Wildman via Python-list
On Wed, 23 Mar 2016 20:34:08 -0400, Dennis Lee Bieber wrote: > On Wed, 23 Mar 2016 10:58:09 -0500, Wildman via Python-list > declaimed the following: > >>On Wed, 23 Mar 2016 02:47:47 -0400, Terry Reedy wrote: >> >>> def load_image(self, _): >>> # load image file >>> >>> You must p

Re: Key Binding Problem

2016-03-23 Thread Wildman via Python-list
On Wed, 23 Mar 2016 02:47:47 -0400, Terry Reedy wrote: > def load_image(self, _): > # load image file > > You must pass the bound method, as you did, and not the function itself > (which has two parameters). I meant to ask a followup question in my previous post but it slipped my

Re: Key Binding Problem

2016-03-23 Thread Wildman via Python-list
On Wed, 23 Mar 2016 02:47:47 -0400, Terry Reedy wrote: > On 3/23/2016 12:28 AM, Wildman via Python-list wrote: >> On Wed, 23 Mar 2016 03:02:51 +, MRAB wrote: >> >>> On 2016-03-23 02:46, Wildman via Python-list wrote: My question is how do I coax bind into executing the button procedu

Re: Key Binding Problem

2016-03-22 Thread Terry Reedy
On 3/23/2016 12:28 AM, Wildman via Python-list wrote: On Wed, 23 Mar 2016 03:02:51 +, MRAB wrote: On 2016-03-23 02:46, Wildman via Python-list wrote: My question is how do I coax bind into executing the button procedures? Or is there a way to generate the button click event from the bindi

Re: Key Binding Problem

2016-03-22 Thread Wildman via Python-list
On Tue, 22 Mar 2016 23:52:57 -0400, Terry Reedy wrote: > On 3/22/2016 10:46 PM, Wildman via Python-list wrote: >> Platform: Linux >> Python: v.2.7.9 >> Tkinter: v.8.6.2 >> >> My program has some buttons for file operations, load_image, >> save_image, and quit. I would like to bind a key that will

Re: Key Binding Problem

2016-03-22 Thread Wildman via Python-list
On Wed, 23 Mar 2016 03:02:51 +, MRAB wrote: > On 2016-03-23 02:46, Wildman via Python-list wrote: >> My question is how do I coax bind into executing the >> button procedures? Or is there a way to generate the >> button click event from the binding? >> > It won't let you bind to a function ca

Re: Key Binding Problem

2016-03-22 Thread Terry Reedy
On 3/22/2016 10:46 PM, Wildman via Python-list wrote: Platform: Linux Python: v.2.7.9 Tkinter: v.8.6.2 My program has some buttons for file operations, load_image, save_image, and quit. I would like to bind a key that will execute the procedures for each of the buttons. The binding for the qui

Re: Key Binding Problem

2016-03-22 Thread MRAB
On 2016-03-23 02:46, Wildman via Python-list wrote: Platform: Linux Python: v.2.7.9 Tkinter: v.8.6.2 My program has some buttons for file operations, load_image, save_image, and quit. I would like to bind a key that will execute the procedures for each of the buttons. The binding for the quit