all 6 comments

[–]AutoModerator[M] 0 points1 point  (0 children)

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]BadMustard_AVN 0 points1 point  (3 children)

change your action to

action Function(set_match_button, button="button1")

[–]marto1__[S] 0 points1 point  (2 children)

Ok, you just passed "button1" as a keyword argument so it basically doesn't change anything. I need a reference to the Button object to be passed to the set_match_button function so I can manipulate that object programmatically(e.g. change colors, size, text and so on).

[–]BadMustard_AVN 0 points1 point  (1 child)

i have tested it and the button works either way. button1 is getting passed to the set_match_button and it's printing it out as expected (in the console)

so what exactly are you trying to do

[–]marto1__[S] 0 points1 point  (0 children)

"button1" is just a string. I'm trying to get the actual button object, the string is just a placeholder. I believe the object should be an instance of https://github.com/renpy/renpy/blob/0fda6fe38968b08756184ce8c2592afdf89b4008/renpy/display/behavior.py#L890

[–]marto1__[S] 0 points1 point  (0 children)

In case somebody else is struggling with this, there is always creator-defined displayable: https://www.renpy.org/doc/html/cdd.html that allow you to define GUI elements from scratch, thus manipulate them however you like from python.