Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] size=() parameter does not work correctly. #1929

Closed
mozesa opened this issue Sep 6, 2019 · 5 comments
Closed

[Bug] size=() parameter does not work correctly. #1929

mozesa opened this issue Sep 6, 2019 · 5 comments
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/

Comments

@mozesa
Copy link

mozesa commented Sep 6, 2019

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

@mozesa mozesa changed the title [ Bug] My problem is... [ Bug] size= parameter does not work correctly. Sep 6, 2019
@mozesa mozesa changed the title [ Bug] size= parameter does not work correctly. [Bug] size= parameter does not work correctly. Sep 6, 2019
@mozesa mozesa changed the title [Bug] size= parameter does not work correctly. [Bug] size=() parameter does not work correctly. Sep 6, 2019
@PySimpleGUI
Copy link
Owner

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.

@PySimpleGUI
Copy link
Owner

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

@PySimpleGUI PySimpleGUI added Bug Something's not right Done - Install Dev Build (see docs for how) See https://docs.pysimplegui.com/en/latest/documentation/installing_licensing/upgrading/ labels Sep 6, 2019
@PySimpleGUI
Copy link
Owner

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.

@PySimpleGUI
Copy link
Owner

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.

@mozesa
Copy link
Author

mozesa commented Sep 6, 2019

You and your team is really doing awesome work.

You are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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/
Projects
None yet
Development

No branches or pull requests

2 participants