<gh_stars>0
from pysitron import PysitronApp

html_code = """
<button onclick="window.say_hello()" id="button">Click me to change text!</button>
"""


class SolarSystemApp(PysitronApp):
    def say_hello(self):
        self.window.document.getElementById('button').innerHTML = "Hello world!"


if __name__ == '__main__':
    app = SolarSystemApp(landing_page=html_code, icon_path=r'../test.ico')
    app.run()

from pysitron import PysitronApp

html_code = """
<button onclick="window.say_hello()" id="button">Click me to change text!</button>
"""


class SolarSystemApp(PysitronApp):
    def say_hello(self):
        self.window.document.getElementById('button').innerHTML = "Hello world!"


if __name__ == '__main__':
    app = SolarSystemApp(landing_page=html_code, icon_path=r'../test.ico')
    app.run()
<button onclick="window.say_hello()" id="button">Click me to change text!</button>