'How to split a window created in PySimpleGUI into two different columns

I'm trying to create a GUI that shows buttons relative to actions on the left side of the window and actions relative to each button that is pressed on the left (with a line between the buttons on the left and actions on the right)

import PySimpleGUI as psg

layout = [
    [psg.Button('Exemple1', size=(50, 1))],
    [psg.Button('Exemple2', size=(50, 1))]


window = psg.Window(title='Exemple', layout=layout, margins=(250, 125), 
background_color='black',button_color='red')

while True:
    event, values = window.read()
    if event == 'Exemple1' or event==psg.WIN_CLOSED:
        print(values)
        break


window.close()

I don't know how to approach this issue I would really appreciate any help



Solution 1:[1]

very simple add this line for getting a horizontal line to layout

[sg.Text('-'*50),],

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 kephalian