Created
May 12, 2020 09:41
-
-
Save cpascual/803ad531adc0485043d2ffc710d4494b to your computer and use it in GitHub Desktop.
Using eval to display the sum of two attributes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from taurus.qt.qtgui.application import TaurusApplication | |
from taurus.qt.qtgui.display import TaurusLabel | |
if __name__ == "__main__": | |
import sys | |
app = TaurusApplication(cmd_line_parser=None) | |
w = TaurusLabel() | |
w.setModel("eval:m1={sys/tg_test/1/};m2={asdasdasd};m1+m2") | |
w.show() | |
sys.exit(app.exec_()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment