Unable to bind the function with widget

Markus Lanner contact at markus-lanner.com
Fri Nov 16 19:29:14 UTC 2012


On 16/11/12 19:53, ANKUR AGGARWAL wrote:
> Hey
>
> I am a newbie to ubuntu app  development. Was learning the tutorial of 
> creating the first ubuntu app (John bacon's video) and got stuck 
> somewhere in the middle. I am unable to bind a function to the button. 
> I am getting warning message as
>
> bin/firstapplication:72: RuntimeWarning: missing handler 
> 'on_refreshButton_clicked'
>   self.builder.connect_signals(self)
>
>
> I want to bind my refresh button named as 'refreshButton' with this 
> function
>
> def on_refreshButton_clicked(self,widget):
>          print "refresh"
>
>
> when I run the code using quickly and press on the button I am getting 
> the upper warning message. Searched the web for the same but I am 
> unable to find a solution. Please help me out in this.
>
>
> Thanks & Regards
> Ankur Aggarwal
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-app-devel/attachments/20121116/55bdbbcb/attachment.html>


More information about the Ubuntu-app-devel mailing list