self.volume_slider = QtWidgets.QSlider(QtCore.Qt.Horizontal, self)
self.mute_button = QtWidgets.QPushButton("Mute", self)
self.test_volume_button = QtWidgets.QPushButton("Test sound", self)
+ self.headerlabel = QtWidgets.QLabel("Hello World", self)
+ self.vollabel = QtWidgets.QLabel("Volume", self)
+ self.packlabel = QtWidgets.QLabel("Sound Pack:", self)
self.sound_pack = QtWidgets.QComboBox(self)
self.sound_pack.addItems(SOUND_PACKS)
self.central_widget = QtWidgets.QWidget(self)
self.setCentralWidget(self.central_widget)
self.layout = QtWidgets.QGridLayout(self.central_widget)
+ self.layout.addWidget(self.headerlabel, 1,0)
+ self.layout.addWidget(self.vollabel, 1,0)
self.layout.addWidget(self.volume_slider, 1,1)
- self.layout.addWidget(self.mute_button, 1,0)
- self.layout.addWidget(self.test_volume_button, 1,4)
- self.layout.addWidget(self.sound_pack, 3,0)
+ self.layout.addWidget(self.mute_button, 0,0)
+ self.layout.addWidget(self.test_volume_button, 0,2)
+ self.layout.addWidget(self.packlabel, 1,0)
+ self.layout.addWidget(self.sound_pack, 1,1)
def setup_connections(self):
self.volume_slider.valueChanged.connect(update_volume)
self.mute_button.clicked.connect(mute)