PySimpleGUI / PySimpleGUI/PySimpleGUI

changing icon using SetOptions does not work

Open
#952 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Tested in python 3.5 and 3.7 on Windows 7

Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)] on win32
# and:
# Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import PySimpleGUI as sg
>>> sg.SetOptions(icon=ICON_FILE)
True
>>> sg.Popup()  # Default feather icon
'OK'
>>> sg.Popup(icon=ICON_FILE)  # The specified icon
'OK'
>>>

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 by reproducing the Python examples using SetOptions(icon=ICON_FILE), Popup(), and Popup(icon=ICON_FILE). Trace how the global icon option is applied versus the explicit Popup icon, and consider the issue done when SetOptions makes the default Popup use the specified icon on the reported Windows and Python versions.

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.