repl.it
@PySimpleGUI/

ElementJustificationInColumns

Tkinter

No description

fork
loading
Files
  • main.py
  • nohup.out
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import PySimpleGUI as sg

colR1C1 = [[sg.Text('2'*10)],
            [sg.Button('button', key='ButtonOne')],
           [sg.CB('Check 1')]]

colR1C2 = [[sg.Text('1'*10)],
            [sg.Text('some text...', key='TextOne')],
           [sg.CB('Check 2')]]

layout = [[sg.Column(colR1C1, background_color='red', element_justification='left', key='-1-'),
           sg.Column(colR1C2, background_color='blue', element_justification='right', key='-2-')]]

window = sg.Window('Window Title', layout, resizable=True, finalize=True)
window['-1-'].expand(expand_x=True)
window['-2-'].expand(expand_x=True)
event, values = window.Read()
Fetching token
?