image_button : function call no yet implemented

Forum for reporting bugs in the library
buffalo
Posts: 36
Joined: Thu Feb 25, 2016 10:34 am

image_button : function call no yet implemented

Postby buffalo » Mon Jul 10, 2017 9:37 pm

example:

Code: Select all

button_lock = thorpy.make_image_button(to_lock, to_lock_pressed, to_lock_hover, colorkey=False, func = call_lock)

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Code: Select all

TypeError: make_image_button() got an unexpected keyword argument 'func'

ThorPy
Site Admin
Posts: 20
Joined: Wed May 13, 2015 9:44 pm

Re: image_button : function call no yet implemented

Postby ThorPy » Tue Jul 11, 2017 9:03 am

Hello,

Indeed, there is no func argument at the creation of an image_button.
You just have to do like this:

Code: Select all

my_button = ....
my_button.user_func = some_function
my_button.user_params = {"arg1":"something", ...}


Return to “Bug Tracking”

Who is online

Users browsing this forum: No registered users and 1 guest