Remove unnecessary widgets

This commit is contained in:
Wiktor Zykubek 2023-06-14 17:39:01 +02:00
parent 08ae286797
commit 6a99d4198c
No known key found for this signature in database
GPG Key ID: 0DAA9DC01449FCA2
2 changed files with 1 additions and 18 deletions

18
form.ui
View File

@ -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>

View File

@ -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: