Re: [kivy-users] Difference between binding on_pos and pos?

177 views
Skip to first unread message

Mathieu Virbel

unread,
Aug 15, 2013, 4:28:21 AM8/15/13
to kivy-...@googlegroups.com
Hi,

I don't know where you get it, but there is no "on_pos" and "on_size" event.

The syntax is:

widget.bind({property or eventname}={callback}).

"pos" and "size" are property.
"on_touch_down" etc... are event name.

Mathieu

Le 13/08/2013 01:15, Syn a �crit :
> Ello Kivsters,
>
> I was just wondering,
> There a difference between binding on_pos and pos?
> widget.bind(pos=callback) VS widget.bind(on_pos=callback)
> Does one have advantages over the other?
>
> Similarly, theres also size and on_size.
>
> Thank you,
> Syn
>
> --
> You received this message because you are subscribed to the Google
> Groups "Kivy users support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to kivy-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

B. Jack

unread,
Aug 15, 2013, 9:39:47 AM8/15/13
to Kivy Users
Isn't:

def on_XXXX(who,what):
    pass

A decorated property callback method for XXXX on objects?

> Date: Thu, 15 Aug 2013 10:28:21 +0200
> From: txp...@gmail.com
> To: kivy-...@googlegroups.com
> Subject: Re: [kivy-users] Difference between binding on_pos and pos?

>
> Hi,
>
> I don't know where you get it, but there is no "on_pos" and "on_size" event.
>
> The syntax is:
>
> widget.bind({property or eventname}={callback}).
>
> "pos" and "size" are property.
> "on_touch_down" etc... are event name.
>
> Mathieu
>
Reply all
Reply to author
Forward
0 new messages