Pysimplegui: [Bug] size=() parameter does not work correctly.

Created on 6 Sep 2019  路  5Comments  路  Source: PySimpleGUI/PySimpleGUI

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).

gui

Bug Done - Download from GitHub Thank you!

All 5 comments

Uggghhhh..... I tried to get the resizing of elements turned on and didn't catch this side effect. Seems like I can't have it both ways at the moment. I'll get an emergency release out today. Several elements are going to have this issue.

OK, fixed on GitHub. Hopefully I didn't turn off expansion for stuff that actually needed it.

Uploaded a quick 4.4.1 and 2.4.1 with hopes not many people downloaded this rather bad release.

Please grab from PyPI again.

Awesome!

Thank you for taking the time to report this so quickly. It really saved my ass!! It allowed me to get on it before too many people installed it.

You and your team is really doing awesome work.

You are welcome!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MikeTheWatchGuy picture MikeTheWatchGuy  路  6Comments

eyeonus picture eyeonus  路  6Comments

xuguojun168 picture xuguojun168  路  3Comments

MikeTheWatchGuy picture MikeTheWatchGuy  路  5Comments

LBdN picture LBdN  路  6Comments