Remove unnecessary widgets
This commit is contained in:
parent
08ae286797
commit
6a99d4198c
18
form.ui
18
form.ui
@ -65,24 +65,6 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
|
||||||
<item>
|
|
||||||
<widget class="QSlider" name="horizontalSlider">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item alignment="Qt::AlignRight">
|
|
||||||
<widget class="QLabel" name="label">
|
|
||||||
<property name="text">
|
|
||||||
<string>00:00</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
|
@ -84,6 +84,7 @@ class MainWindow(QMainWindow):
|
|||||||
|
|
||||||
self.__player.setSource(QUrl(stream_url))
|
self.__player.setSource(QUrl(stream_url))
|
||||||
self.ui.toolButton.setIcon(QIcon.fromTheme("media-playback-start"))
|
self.ui.toolButton.setIcon(QIcon.fromTheme("media-playback-start"))
|
||||||
|
self.togglePlayer()
|
||||||
|
|
||||||
def togglePlayer(self):
|
def togglePlayer(self):
|
||||||
if self.__player.playbackState() == QMediaPlayer.PlaybackState.PlayingState:
|
if self.__player.playbackState() == QMediaPlayer.PlaybackState.PlayingState:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user