[SCRIPT] Updated
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
from ignis.widgets import Widget
|
||||
from .row import SettingsRow
|
||||
from ignis.gobject import Binding
|
||||
|
||||
|
||||
class FileRow(SettingsRow):
|
||||
def __init__(
|
||||
self,
|
||||
dialog: Widget.FileDialog,
|
||||
button_label: str | Binding | None = None,
|
||||
**kwargs,
|
||||
):
|
||||
super().__init__(**kwargs)
|
||||
self._button = Widget.FileChooserButton(
|
||||
dialog=dialog,
|
||||
label=Widget.Label(
|
||||
label=button_label, ellipsize="start", max_width_chars=20
|
||||
),
|
||||
hexpand=True,
|
||||
halign="end",
|
||||
)
|
||||
|
||||
self.child.append(self._button)
|
||||
Reference in New Issue
Block a user