nix fmt
This commit is contained in:
@@ -21,7 +21,6 @@ class ClanSelectPage(Gtk.Box):
|
|||||||
def on_backup_clicked(self, widget):
|
def on_backup_clicked(self, widget):
|
||||||
print("Backup clicked")
|
print("Backup clicked")
|
||||||
|
|
||||||
|
|
||||||
def on_cell_toggled(self, widget, path):
|
def on_cell_toggled(self, widget, path):
|
||||||
print(f"on_cell_toggled: {path}")
|
print(f"on_cell_toggled: {path}")
|
||||||
# Get the current value from the model
|
# Get the current value from the model
|
||||||
@@ -38,9 +37,12 @@ class ClanSelectPage(Gtk.Box):
|
|||||||
if row is not None:
|
if row is not None:
|
||||||
print(f"Selected {model[row][0]}")
|
print(f"Selected {model[row][0]}")
|
||||||
|
|
||||||
|
|
||||||
class ClanSelectButtons(Gtk.Box):
|
class ClanSelectButtons(Gtk.Box):
|
||||||
def __init__(self, on_start_clicked, on_stop_clicked, on_backup_clicked):
|
def __init__(self, on_start_clicked, on_stop_clicked, on_backup_clicked):
|
||||||
super().__init__(orientation=Gtk.Orientation.HORIZONTAL, margin_bottom=10, margin_top=10)
|
super().__init__(
|
||||||
|
orientation=Gtk.Orientation.HORIZONTAL, margin_bottom=10, margin_top=10
|
||||||
|
)
|
||||||
|
|
||||||
button = Gtk.Button(label="Start", margin_left=10)
|
button = Gtk.Button(label="Start", margin_left=10)
|
||||||
button.connect("clicked", on_start_clicked)
|
button.connect("clicked", on_start_clicked)
|
||||||
@@ -93,4 +95,3 @@ class ClanSelectList(Gtk.Box):
|
|||||||
|
|
||||||
self.set_border_width(10)
|
self.set_border_width(10)
|
||||||
self.add(self.tree_view)
|
self.add(self.tree_view)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user