cb
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import click
|
import click
|
||||||
|
|
||||||
from textual.screen import Screen
|
from textual.screen import Screen
|
||||||
from textual.widgets import Header, Footer, Static, Button, SelectionList, Select, DataTable, Input
|
from textual.widgets import Header, Footer, Static, Button, SelectionList, Select, DataTable, Input, Checkbox
|
||||||
from textual.containers import Grid
|
from textual.containers import Grid
|
||||||
from textual.widgets._data_table import CellDoesNotExist
|
from textual.widgets._data_table import CellDoesNotExist
|
||||||
|
|
||||||
@@ -256,9 +256,12 @@ class TrackDetailsScreen(Screen):
|
|||||||
self.query_one("#type_select", Select).value = self.__trackType
|
self.query_one("#type_select", Select).value = self.__trackType
|
||||||
|
|
||||||
self.query_one("#audio_layout_select", Select).value = self.__audioLayout
|
self.query_one("#audio_layout_select", Select).value = self.__audioLayout
|
||||||
self.query_one("#drop_checkbox", SelectionList).add_option(
|
|
||||||
(t("Yes"), 0, self.__dropped)
|
# CB
|
||||||
)
|
self.query_one("#drop_checkbox", Checkbox).value = self.__dropped
|
||||||
|
# self.query_one("#drop_checkbox", SelectionList).add_option(
|
||||||
|
# (t("Yes"), 0, self.__dropped)
|
||||||
|
# )
|
||||||
|
|
||||||
for disposition in TrackDisposition:
|
for disposition in TrackDisposition:
|
||||||
|
|
||||||
@@ -288,7 +291,10 @@ class TrackDetailsScreen(Screen):
|
|||||||
if self.__metadataOnly:
|
if self.__metadataOnly:
|
||||||
self.query_one("#type_select", Select).disabled = True
|
self.query_one("#type_select", Select).disabled = True
|
||||||
self.query_one("#audio_layout_select", Select).disabled = True
|
self.query_one("#audio_layout_select", Select).disabled = True
|
||||||
self.query_one("#drop_checkbox", SelectionList).disabled = True
|
|
||||||
|
# CB
|
||||||
|
self.query_one("#drop_checkbox", Checkbox).disabled = True
|
||||||
|
# self.query_one("#drop_checkbox", SelectionList).disabled = True
|
||||||
|
|
||||||
def on_select_changed(self, event: Select.Changed) -> None:
|
def on_select_changed(self, event: Select.Changed) -> None:
|
||||||
if event.select.id == "language_select":
|
if event.select.id == "language_select":
|
||||||
@@ -351,7 +357,10 @@ class TrackDetailsScreen(Screen):
|
|||||||
|
|
||||||
# Row 8
|
# Row 8
|
||||||
yield Static(t("Drop"))
|
yield Static(t("Drop"))
|
||||||
yield SelectionList[int](id="drop_checkbox", classes="four")
|
|
||||||
|
# CB
|
||||||
|
yield Checkbox(id="drop_checkbox", classes="four")
|
||||||
|
# yield SelectionList[int](id="drop_checkbox", classes="four")
|
||||||
|
|
||||||
# Row 9
|
# Row 9
|
||||||
yield Static(" ", classes="five")
|
yield Static(" ", classes="five")
|
||||||
|
|||||||
Reference in New Issue
Block a user