Tweak panes

This commit is contained in:
Jan Hamal Dvořák 2025-03-08 20:09:26 +01:00
parent 1c458b456e
commit 09b877eab6

View file

@ -20,10 +20,10 @@ class MainWindow(Gtk.ApplicationWindow):
# Main horizontal box to split the screen
main_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
main_box.set_homogeneous(True) # Make both halves equal size
# Left half - File list
left_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
left_box.set_hexpand(True)
# Create list store and view
list_store = Gtk.StringList()
@ -51,6 +51,7 @@ class MainWindow(Gtk.ApplicationWindow):
right_box.set_halign(Gtk.Align.CENTER)
right_label = Gtk.Label(label="Right Side")
right_box.append(right_label)
right_box.set_hexpand(True)
# Add both halves to main box
main_box.append(left_box)