From: Carlos P. <cpa...@ce...> - 2017-04-11 15:08:30
|
Hi, The taurusdesigner is just the standard designer with an extended catalog of (taurus) widgets. Some taurus widgets (but not all) will have a `model` property that you can set directly in the designer (e.g. you can add a TaurusLabel to your widget in taurusdesigner and then look for its "model" property in the property editor and set it to "/sys/tg_test/1/ampli"). Then, when you run your widget (not within designer) the label will be updated with the changes in the given attribute. ... but I personally tend to set the models programmatically, when I do the rest of the logic, using the `.setModel()` setter that all Taurus widgets have. Note that there is no list of available tango attributes in the designer (your development machine may not even have access to the same Tango host as your production machine, so the utility of this would be rather limited). Instead, many widgets (forms, plots, etc) may allow you to change their models (e.g. the tango attributes they are connected to) at run time, by using the ModelChooser widget and/or drag&drop. Finally: if you are starting with Taurus Programming, consider using the TaurusGUI framework and only using taurusdesigner to create specific widgets that you then use from a TaurusGUI. Carlos On Tuesday, April 11, 2017 2:59:12 PM CEST gu...@la... wrote: > Dear taurus-members, > > I have some difficulties to understand how one should use the taurusdesiner. > Comparing to the « normal » Qt designer there are many new taurus widgets > apps. My question is that I do not know how to attach a button, a plot etc > to a tango variable … for example to /sys/tg_test/1 … If I use Jdraw for > example, the list of tango variables appear on the left side of the panel. > > > Many thanks for your help, > > Cheers, > Hayg -- +----------------------------------------------------+ Carlos Pascual Izarra Scientific Software Coordinator Computing Division ALBA Synchrotron [http://www.albasynchrotron.es] Carrer de la Llum 2-26 E-08290 Cerdanyola del Valles (Barcelona), Spain E-mail: cpa...@ce... Phone: +34 93 592 4428 +----------------------------------------------------+ |