Re: Tkinter: tkButtonDown, tkButtonEnter, tkButtonInvoke, tkButtonLeave, tkButtonUp

2008-09-02 Thread akineko
On Sep 2, 5:46 am, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > Did you even try creating a checkbutton with indicatoron=False ? You > could get surprised. I didn't. My perception of checkbutton was a button with a check. So, I tried as you suggested. Yes, you are right. It is almost what I wante

Re: Tkinter: tkButtonDown, tkButtonEnter, tkButtonInvoke, tkButtonLeave, tkButtonUp

2008-09-02 Thread Guilherme Polo
On Tue, Sep 2, 2008 at 12:44 AM, akineko <[EMAIL PROTECTED]> wrote: > On Sep 1, 8:28 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: >> Can you clarify what is this "sticky" behavior ? Are you referring to >> a toggle button ? If yes, then you might be after a simple >> Checkbutton: >> >> checkbutt

Re: Tkinter: tkButtonDown, tkButtonEnter, tkButtonInvoke, tkButtonLeave, tkButtonUp

2008-09-01 Thread akineko
On Sep 1, 8:28 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > Can you clarify what is this "sticky" behavior ? Are you referring to > a toggle button ? If yes, then you might be after a simple > Checkbutton: > > checkbutton = Tkinter.Checkbutton(indicatoron=False, text='test') I wouldn't spend

Re: Tkinter: tkButtonDown, tkButtonEnter, tkButtonInvoke, tkButtonLeave, tkButtonUp

2008-09-01 Thread Guilherme Polo
On Mon, Sep 1, 2008 at 11:01 PM, akineko <[EMAIL PROTECTED]> wrote: > On Sep 1, 6:34 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: >> This is an illusion you have, calling those methods are not the way >> for explicitly controlling button's behavior, not more than generating >> proper events. The

Re: Tkinter: tkButtonDown, tkButtonEnter, tkButtonInvoke, tkButtonLeave, tkButtonUp

2008-09-01 Thread akineko
On Sep 1, 6:34 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > This is an illusion you have, calling those methods are not the way > for explicitly controlling button's behavior, not more than generating > proper events. The explicit way is to not use a button, instead > (ab)use Canvas. Some of

Re: Tkinter: tkButtonDown, tkButtonEnter, tkButtonInvoke, tkButtonLeave, tkButtonUp

2008-09-01 Thread Guilherme Polo
On Mon, Sep 1, 2008 at 10:09 PM, akineko <[EMAIL PROTECTED]> wrote: > On Sep 1, 5:52 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > >> Are you trying to simulate clicks ? You should be doing it using >> event_generate, more below. >> > > Actually, I was trying to implement a "sticky" button. > (

Re: Tkinter: tkButtonDown, tkButtonEnter, tkButtonInvoke, tkButtonLeave, tkButtonUp

2008-09-01 Thread akineko
On Sep 1, 5:52 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > Are you trying to simulate clicks ? You should be doing it using > event_generate, more below. > Actually, I was trying to implement a "sticky" button. (Button Release is done later by another event) I already tried event_generate.

Re: Tkinter: tkButtonDown, tkButtonEnter, tkButtonInvoke, tkButtonLeave, tkButtonUp

2008-09-01 Thread Guilherme Polo
On Mon, Sep 1, 2008 at 7:45 PM, akineko <[EMAIL PROTECTED]> wrote: > Hi everyone, > > This is a memorandum so that other people can share the info. > > The following methods are declared in the Tkinter Button class. > tkButtonDown(), tkButtonEnter(), tkButtonInvoke(), tkButtonLeave(), > tkButtonUp(