|
From: Carlos P. <cpa...@ce...> - 2016-11-28 08:07:00
|
If it is just about accessing the *existing* label widget, you can do it with
f[0].labelWidget()
... and then you can call setText, or whatever
If you want to set a different label widget, you can't directly set the
widget, but you can do it by setting the class with:
f[0].setLabelWidgetClass(MyLabel)
Cheers
On Friday, November 18, 2016 1:35:56 PM CET Tiago Coutinho wrote:
> Hi,
>
> How can I set an item label in taurusform?
>
> Is there something like:
>
> f = TaurusForm()
> f.setModel('a/b/c/d')
>
> f[0].setLabelWidget(Qt.QLabel('my label'))
>
>
> Thanks in advance
>
> Cheers
> Tiago
>
> ----------------------------------------------------------------------------
> -- _______________________________________________
> Tauruslib-devel mailing list
> Tau...@li...
> https://lists.sourceforge.net/lists/listinfo/tauruslib-devel
--
+----------------------------------------------------+
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
+----------------------------------------------------+
|