diff --git a/form.ui b/form.ui index 411ee24..006c599 100644 --- a/form.ui +++ b/form.ui @@ -6,19 +6,19 @@ 0 0 - 350 + 400 500 - 350 + 400 500 - 350 + 400 500 @@ -44,7 +44,7 @@ 9 9 - 332 + 381 461 @@ -52,19 +52,76 @@ - + - 130 + 150 0 - 130 + 150 16777215 + + 0 + + + + Radio + + + + + 0 + 0 + 150 + 400 + + + + + 150 + 400 + + + + + 150 + 400 + + + + + + + Podcasty + + + + + 0 + 0 + 150 + 400 + + + + + 150 + 400 + + + + + 150 + 400 + + + + @@ -99,6 +156,18 @@ 0 + + + 120 + 0 + + + + + 120 + 16777215 + + 70 @@ -124,7 +193,7 @@ 0 0 - 350 + 400 22 diff --git a/openfm_qt/mainwindow.py b/openfm_qt/mainwindow.py index 1ed0051..8f164ae 100644 --- a/openfm_qt/mainwindow.py +++ b/openfm_qt/mainwindow.py @@ -34,7 +34,7 @@ class MainWindow(QMainWindow): self.setVolume(DEFAULT_VOLUME) self.printGroups() - self.ui.groupsListWidget.itemClicked.connect(self.printStations) + self.ui.radioGroupsListWidget.itemClicked.connect(self.printStations) self.ui.stationsListWidget.itemClicked.connect(self.playRadio) self.ui.playbackToolButton.clicked.connect(self.togglePlayer) self.ui.volumeHorizontalSlider.valueChanged.connect(self.setVolume) @@ -55,14 +55,14 @@ class MainWindow(QMainWindow): return json.loads(resp.text) def printGroups(self) -> None: - """Print groups (categories) in groupsListWidget.""" - self.ui.groupsListWidget.addItems( + """Print groups (categories) in radioGroupsListWidget.""" + self.ui.radioGroupsListWidget.addItems( [e["name"] for e in self.__stations_data["groups"]] ) def printStations(self) -> None: """Print stations (channels) in stationsListWidget.""" - group = self.ui.groupsListWidget.selectedItems()[0].text() + group = self.ui.radioGroupsListWidget.selectedItems()[0].text() group_id = None for e in self.__stations_data["groups"]: if e["name"] == group: diff --git a/pyproject.toml b/pyproject.toml index 0bfcc39..ce51f9b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "openfm-qt" -version = "0.1.0" +version = "0.2.0" description = "Qt client for Polish internet radio Open FM." authors = ["Wiktor Zykubek "] license = "ISC"