When I was working on some scripts something went wrong.
I am using different surfaces to display a text, but this surface change it's alignement depending on the content itself.
The text surface is created in on_started, like so
self.text = sol.text_surface.create( blablabla )
There is a problem if I'm trying to change the text alignment on another function, for instance, in on_command_pressed()
An error occurs
calling set_horizontal_alignment on bad self (string expected, got userdata))
However, self.text:get_horizontal_alignment() works ...