import sys
from taurus.external.qt import Qt
from taurus.qt.qtgui.application import TaurusApplication

from taurus.qt.qtgui.display import TaurusLabel

app = TaurusApplication(sys.argv, cmd_line_parser=None)
panel = Qt.QWidget()
layout = Qt.QHBoxLayout()
panel.setLayout(layout)

w1, w2, w3 = TaurusLabel(), TaurusLabel(), TaurusLabel()
layout.addWidget(w1)
layout.addWidget(w2)
layout.addWidget(w3)
w1.model, w1.bgRole = "sys/tg_test/1/double_scalar#label", ""
w2.model = "sys/tg_test/1/double_scalar"
w3.model, w3.bgRole = "sys/tg_test/1/double_scalar#unit", ""

panel.show()
sys.exit(app.exec_())
