if i put element_justification as center i get button on the center, if i put element_justification on the right then text is also on the right even thoguht i putted justification in the text separately, i need text in center and button align to the right of the window.
import PySimpleGUI as sg
layout = [[sg.Text('Nešto ne štima', text_color="", font=(
'Helvetica', 30), justification='center', key='rezultat1')],
[sg.Text('Nije se spojilo na net', text_color="", font=(
'Helvetica', 20), justification='center', visible=False, key='rezultat')],
[sg.Button('?', size=(0, 0), visible=True, font=(
'Helvetica', 20), key='go')], [sg.Button('Enter','center', visible=False,
key='gumb')]]
win = sg.Window('Proba', layout, element_justification='center')
while True:
e, v = win.read()
if e == 'go':
win.Element('rezultat').Update('Nije se spojilo na net', visible=True)
if e == sg.WIN_CLOSED:
win.close()
break