From: Sergi R. <sr...@ce...> - 2015-07-03 08:34:10
|
Hi, The TaurusPropTable is a quite old widget, it works well if you use it this way: from taurus.qt.qtgui.application import TaurusApplication from taurus.qt.qtgui.table import TaurusPropTable app = TaurusApplication() device = 'your/device/name' props = TaurusPropTable() props.setTable(device) props.show() app.exec_() You must use setTable() to attach the widget; setModel() doesn't work because this class is using Database as model when it should be using Device instead. I'll create a sourceforge ticket for that. Sergi On 07/02/2015 02:55 PM, Carlos Pascual wrote: > Hi Binit, > > I must confess that this is the first time I hear about TaurusPropTable. > AFAIK, it is a rather private widget only used by taurusdevicetree (and > only in some non-standard configurations) > > I tried to test it and couldn't make it work. > > The only person I know who *may* use it is Sergi Rubio. Maybe he can > explain something (I am forwarding this to him). > > Cheers! > > Ps: whenever possible, please try to use TangoTest for your questions > instead of a custom DS. This will make it easier for us to test. > > On Thu 2 July 2015 17:05:20 Binit Amin wrote: >> Hi All, >> >> >> I need help regarding TaurusPropTable. I have to attach model to the >> property of the TaurusPropTable. Consider that I have 2 property >> namely - fullName, marks. >> In back-end these properties are connected with the Tango device >> server. I want to connect this 2 parameter with TaurusPropTable. >> >> Attachment includes Java Program for Tango Device Server and auto >> generated Python code for PyQt4. >> >> I had search on net but won't be able to find much on TaurusPropTable. >> It would be great if any one can give me one small example on >> TaurusPropTable with two or three Property. |