Commits

wump committed 41f7f44

all lights selected at startup

Comments (0)

Files changed (1)

         button_wallwasher = QtGui.QPushButton('All WW')
         button_non_wallwasher = QtGui.QPushButton('Non-WW')
         button_right = QtGui.QPushButton('All Right')
+        button_all = QtGui.QPushButton('All')
 
         vlayout = QtGui.QVBoxLayout()
         vlayout.addWidget(self._lampsel)
         vlayout.addWidget(button_wallwasher)
         vlayout.addWidget(button_right)
         vlayout.addWidget(button_non_wallwasher)
+        vlayout.addWidget(button_all)
 
         layout.addLayout(vlayout)
 
             self.lightSetter([self.lamp_right, self.lamp_wwright]))
         button_non_wallwasher.clicked.connect(
             self.lightSetter([self.lamp_right, self.lamp_left]))
+        button_all.clicked.connect(
+            self.lightSetter([self.lamp_right, self.lamp_left, self.lamp_wwleft, self.lamp_wwcenter, self.lamp_wwright]))
         self._colorsel.currentColorChanged.connect(self.doColorChanged)
 
+        button_all.click()
+
     def addLamps(self, widget):
         self.lamp_left = QtGui.QListWidgetItem('Left')
         self.lamp_left.setData(Qt.UserRole, Lights.LEFT)