os-fpga / FOEDAG

Framework Open EDA Gui
https://foedag.readthedocs.io
Other
60 stars 29 forks source link

Add possibility to transfer qt widgets into tcl for the testing purposes #236

Open KochynVolodymyr opened 2 years ago

KochynVolodymyr commented 2 years ago

We want to have access to qt widgets from tcl scripts. For example:

% set widget [expr getWidget "console"]
% ...

@alain-rs please describe more requirements for this feature.

KochynVolodymyr commented 2 years ago

This is basically done since no any other requirement.

alain-rs commented 2 years ago

Examples:

set widget [getWidget "console"] send_action $widget "text_entry" "Hello!" send_action $widget "text_clear"

set widget [getWidget "editor"] send_action $widget "open_file" "test.v" set widget [getWidget "editor" "test.v"] send_action $widget "highlight" "test.v" 10 << Line