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

app = TaurusApplication(sys.argv, cmd_line_parser=None)
panel = Qt.QWidget()
layout = Qt.QGridLayout()
panel.setLayout(layout)
for y in range(4):
    for x in range(2):
        w = TaurusLabel()
        w.setModel("sys/taurustest/%d/state" % ((y + 1) + 4 * x))
        w.setShowText(False)
        w.setBgRole("state")
        layout.addWidget(w, x, y)
panel.show()

sys.exit(app.exec_())
