PySimpleGUI / PySimpleGUI/PySimpleGUI

[Bug] Issues with popup_scrolled in PySimpleGUIWx

Open
#3,204 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Type of Issues: Bug
Operating System: Windows 7 64bit
Python version: 3.8.3
PySimpleGUIWx Version 0.17.1 Released 7-Jun-2020

Your Experience Levels In Months or Years

3 months: Python programming experience
10 years: Programming experience overall
Yes: Have used another Python GUI Framework (tkinter, Qt, etc) previously (yes/no is fine)?

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

3 problems noticed with popup_scrolled in PySimpleGUIWx:

  1. No way to add the title separate from the data (title = 'str' parameter causes an error).
  2. "OK" button not clickable when used in combination with SystemTray.
  3. "OK" button positioned differently with different data passed to the popup.
Code To Duplicate

Use this as a staring point: https://github.com/PySimpleGUI/PySimpleGUI/blob/master/DemoPrograms/Demo_System_Tray_Icon.py

Replace the last line:
tray.show_message('Title', 'Hey, you clicked Menu!')
with this:

        values = ['one', 'two', 'three']
        sg.popup_scrolled('Title', *values)

In this example the "OK" button is not clickable, also if you change values it will be positioned differently. And if you specify the title using title='Title' it will crash with an error.

P.S. Thank you for this great library!

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

Start with DemoPrograms/Demo_System_Tray_Icon.py and reproduce the popup_scrolled call on Windows with PySimpleGUIWx 0.17.1. Investigate the three reported behaviors: separate title handling, OK-button clickability with SystemTray, and button positioning across different data. Done means the example runs without a title-related error, the OK button is clickable, and its placement is consistent.

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.