It's 6.17.7PyTom wrote:What version of Ren'Py are you using?
Search found 3 matches
- Sun Nov 02, 2014 2:06 am
- Forum: Ren'Py Questions and Announcements
- Topic: User-defined class method as textbutton action?
- Replies: 5
- Views: 2491
Re: User-defined class method as textbutton action?
- Sat Nov 01, 2014 7:44 am
- Forum: Ren'Py Questions and Announcements
- Topic: User-defined class method as textbutton action?
- Replies: 5
- Views: 2491
Re: User-defined class method as textbutton action?
I am new to this, but I hope this helps. I hacked this solution into my own project to see if it works, and it seems to. According to http://www.renpy.org/doc/html/screen_actions.html#other-actions , you can call functions through Function(callable, args, kwargs) , so your textbutton statement shou...
- Sat Nov 01, 2014 4:44 am
- Forum: Ren'Py Questions and Announcements
- Topic: User-defined class method as textbutton action?
- Replies: 5
- Views: 2491
User-defined class method as textbutton action?
Using python, I defined a class and defined a function in that class so that I can call the function like x.the_function() Then I tried to make a textbutton using this function in a screen, so I did something like this. textbutton "button" action x.the_function() However when I run this co...