On Wed, 19 Oct 2016 04:39:03 +0100, MRAB wrote:
> The 'bind' method passes an 'event' object when it calls; the 'command'
> callback doesn't.
>
> You don't care about the 'event' object anyway, so you can just define a
> single method with a default argument that you ignore:
>
> def load_
On 2016-10-19 03:13, Wildman via Python-list wrote:
I am working on a program with a GUI created with Tkinter. I
want to enable key bindings for the button widgets. Below is
some of the code to show how the window and button widget was
created. The button calls a routine that will load an imag
I am working on a program with a GUI created with Tkinter. I
want to enable key bindings for the button widgets. Below is
some of the code to show how the window and button widget was
created. The button calls a routine that will load an image.
class Window(tk.Frame):
def __init__(self, m
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
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
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
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
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
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
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
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
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
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
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 button was easy...
root.bind("", quit)
root.bind("",
14 matches
Mail list logo