rawpython / remi

Python REMote Interface library. Platform independent. In about 100 Kbytes, perfect for your diet.
Apache License 2.0
3.48k stars 401 forks source link

A link to another page #461

Closed occoder closed 2 years ago

occoder commented 2 years ago

Hi I'm referring to the example widgets_overview_app.py where a hyperlink instance points to itself. I don't know if it is possible to let the link point to another page which is served by a separate route? If no, what is the main purpose of this self-pointing-only link widget? Thanks

dddomodossola commented 2 years ago

Hello @occoder , It is not possible to link to another "page" of a remi application. The purpose of the self-pointing-only link widget is just to show that a link can open an url, but I understand that it can cause misunderstanding. A remi application has to be considered exactly as a standard gui program, not as a website. When you want to switch to a different "page", you have to replace the root widget, and this is easly achievable with a button click event or whatever event as shown in this example: https://github.com/dddomodossola/remi/blob/master/examples/root_widget_change_app.py

Here I am if you need further clarification about this ;-)

occoder commented 2 years ago

Hello @dddomodossola Thanks for the clarification. Remi's design philosophy becomes clearer.