PySimpleGUI / PySimpleGUI/PySimpleGUI

[Bug] PySimpleGUIQt Frame Element not working as expected inside column

Open
#3,309 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
Python
Stars
13.8k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

Bug
Operating System: Windows 10
Python version: 3.8.3
PySimpleGUI Port and Version:

<module 'PySimpleGUIQt' from 'C:\\Program Files\\Python38\\lib\\site-packages\\PySimpleGUIQt\\__init__.py'>
0.35.0 Released 6-Jun-2020

Your Experience Levels In Months or Years

2 years of Python programming experience
2 years Programming experience overall
Have used another Python GUI Framework (tkinter, Qt, etc) previously (yes/no is fine)? No

You have completed these steps:
  • Read instructions on how to file an Issue
  • Searched through main docs http://www.PySimpleGUI.org for your problem
  • Searched through the readme for your specific port if not PySimpleGUI (Qt, WX, Remi)
  • Looked for Demo Programs that are similar to your goal http://www.PySimpleGUI.com
  • Note that there are also Demo Programs under each port on GitHub
  • Run your program outside of your debugger (from a command line)
  • Searched through Issues (open and closed) to see if already reported
  • Try again by upgrading your PySimpleGUI.py file to use the current one on GitHub. Your problem may have already been fixed but is not yet on PyPI.
Description of Problem / Question / Details

The border and the Frame title gets cut off when placing it inside a column.
image

Code To Duplicate
import PySimpleGUIQt as sg
print(sg)
print(sg.version)

frame_1 = [
    [sg.Text("Text 1"), sg.Input()],
    [sg.Ok()],
]

frame_2 = [
    [sg.Text("Text 2"), sg.Input()],
    [sg.Ok()],
]

col_1 = [[sg.Frame("Frame1", frame_1)]]
layout = [[sg.Column(col_1), sg.Frame("Frame2", frame_2)]]
window = sg.Window("Window1", layout)

while True:
    event, values = window.read()
    if event == (sg.WIN_CLOSED):
        break

window.close()

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the supplied Python snippet using PySimpleGUIQt, then inspect the Frame and Column entry points involved in layout and rendering. Done means the Frame border and title are fully visible when the Frame is placed inside a Column.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.