[Bug] size=() parameter does not work correctly. #1929
Labels
Bug
Something's not right
Done - Install Dev Build (see docs for how)
See https://docs.pysimplegui.com/en/latest/documentation/installing_licensing/upgrading/
Type of Issues (Enhancement, Error, Bug, Question)
Bug
Operating System
Windows 10
Python version
3.7.4
PySimpleGUI Port and Version
PySimpleGUI 4.4.0
Code or partial code causing the problem
PySimpleGUI
import PySimpleGUI as sg
layout = [
[sg.Text('Persistent window', size=(50, 1))],
[sg.Input(do_not_clear=True, size=(1, 1))],
[sg.Button('Read'), sg.Exit()]
]
window = sg.Window('Window that stays open', layout)
while True:
event, values = window.Read()
if event is None or event == 'Exit':
break
print(event, values)
window.Close()
As you can see the size of Input should be (1, 1). However its size is (50, 1).
The text was updated successfully, but these errors were encountered: