Exemplo n.º 1
0
def on_layout_btn_clicked(button: Gtk.Button, *args):
    """
    @brief      Change desktop layout on layout button click.

    @details    In the layout regarding button must be named
    after the target layout name int LAYOUT_COMMANDS dictionary.

    @param      button   Gtk.Button button widget that recieved
    clicked event.

    @param      args     place holder list

    @return     None
    """
    name: str = button.get_name()
    print("Layout Name: ", name)
    commands = LAYOUT_COMMANDS[name]
    for cmd in commands:
        cmd.execute()