Re: Is it possible to share a callback function in order to detect which button is clicked?



On Thu, Feb 4, 2010 at 1:23 PM, Bokyun Na <bkna kpu ac kr> wrote:
> I put a simple code to test which a button is clicked
>
> There are two buttons.
>
> I would know which button is clicked in the function
> “on_window_partition()”.
>

You can. The button object is sent as the first argument in the
callback. All you have to do is set the same callback for both button
clicks.


-- 
Siddhesh Poyarekar
http://siddhesh.in


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]