Tweak panes
This commit is contained in:
parent
1c458b456e
commit
09b877eab6
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue