[Bug] unknown color is back (sorry)
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 45/100
Direção de pesquisa
Comece executando o código fornecido com PySimpleGUI 6.3 no Windows 11, concentrando-se na seleção de sg.theme("DefaultNoMoreNagging") e no valor de cor informado, 1234567890. Compare o comportamento com a Version 4 e, em seguida, localize o ponto de entrada da validação de tema ou de cor. Está concluído quando a cor desconhecida não reaparecer inesperadamente, com uma reprodução focada ou um teste confirmando o comportamento.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Type of Issue (Enhancement, Error, Bug, Question)
unknow color named 1234567890 is back with Version 6.3
Operating System
Windows 11
PySimpleGUI Port (tkinter, Qt, Wx, Web)
New install PSG this morning
Versions
NOTE - PSG4 is no longer supported
Please try Version 6 if you're running Version 4.
Version information can be obtained by calling sg.main_get_debug_data()
Or you can print each version shown in ()
Python version (sg.sys.version)
PySimpleGUI Version (sg.__version__)
6.3
GUI Version (tkinter (sg.tclversion_detailed), PySide2, WxPython, Remi)
Your Experience In Months or Years (optional)
Years Python programming experience 23
Years Programming experience overall 32
Have used another Python GUI Framework? (tkinter, Qt, etc) (yes/no is fine)
Reverting to Version 4 Worked
Anything else you think would be helpful?
Troubleshooting
These items may solve your problem. Please check those you've done by changing - [ ] to - [X]
- Searched main docs for your problem PySimpleGUI Documenation
- Looked for Demo Programs that are similar to your goal. It is recommend you use the Demo Browser! Demo Programs
- None of your GUI code was generated by an AI algorithm like GPT
- If not tkinter - looked for Demo Programs for specific port
- For non tkinter - Looked at readme for your specific port if not PySimpleGUI (Qt, WX, Remi)
- Run your program outside of your debugger (from a command line)
- Searched through Issues (open and closed) to see if already reported Issues.PySimpleGUI.com
- Upgraded to the latest release of PySimpleGUI on PyPI (Version 6)
Looks to be an issue from 2021 that was resolved, that has come back in Version 6
Detailed Description
Code To Duplicate
A short program that isolates and demonstrates the problem (Do not paste your massive program, but instead 10-20 lines that clearly show the problem)
This pre-formatted code block is all set for you to paste in your bit of code:
# Paste your code here
import os
import PySimpleGUI as sg
DEFAULT_PATH = r"~\Python_Projects\_ProjectData"
TARGET_PATH = os.path.expanduser("~")
# Trying Different Themes to see which one worked
sg.theme("DefaultNoMoreNagging")
# sg.theme("LightGray1")
# sg.theme("SystemDefault")
# Define the layout of the window
layout = [
[sg.Text("Select a folder below:")],
[
sg.InputText(key="-FOLDER-", size=(40, 1)),
sg.FolderBrowse("Browse", initial_folder=TARGET_PATH),
sg.Button("Default")
],
[sg.Button("Run"), sg.Button("Exit")],
]
# Create the window
window = sg.Window("Folder Selector", layout)
# Event loop to process user actions
while True:
try:
event, values = window.read()
# Handle window closure or Exit button
if event == sg.WIN_CLOSED or event == "Exit":
break
if event == "Default":
window["-FOLDER-"].update(DEFAULT_PATH)
selected_folder=DEFAULT_PATH
# Handle Run button
if event == "Run":
selected_folder = values["-FOLDER-"]
if selected_folder:
sg.popup("Success", f"Running process on:\n{selected_folder}")
else:
sg.popup_error("Error", "Please select a folder first!")
except Exception as e:
print(f"An error occurred: {e}")
window.close()
Screenshot, Sketch, or Drawing
Watcha Makin?
A way to generate local reports using stored html templates
- Linguagem predominante
- Python
- Estrelas
- 13.8k
- Forks
- 1.8k
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de PySimpleGUI/PySimpleGUI
-
Bug Done - Install Dev Build (see docs for how) Platform Specific Issue - Linux Port - TK
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
PySimpleGUI/PySimpleGUI#6904 · 15 comentários ·
-
Bug Demo Programs Done - Install Dev Build (see docs for how) Interoperability Port - TK workaround available
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
PySimpleGUI/PySimpleGUI#6900 · 1 comentário ·
-
Done - Install Dev Build (see docs for how) enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
PySimpleGUI/PySimpleGUI#3251 · 12 comentários ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 74/100
PySimpleGUI/PySimpleGUI#6906 · 1 comentário · 1 reação ·
-
Port - TK Question
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 30/100
PySimpleGUI/PySimpleGUI#6895 · 12 comentários ·
Todas as issues de PySimpleGUI/PySimpleGUI
Issues semelhantes
-
from:qa priority:P2 reliability tech-debt
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
spec-kitty/spec-kitty#4874 ·
-
fix: inaccuracy ⚠️
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
uabrc/uabrc.github.io#1255 · 1 comentário ·
-
kind:bug needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
-
docs
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
ethereum-optimism/factory#64 ·