A specific button is usually used to open the widget. The widget can be assigned to a button in the game configuration under input binding. Instead of the toggle widget action, the run script action can be selected. The widget can then be displayed within the script with show_widget("your widget id"). The second widget can also be displayed with another show_widget("your other widget id"). I hope this helps.