Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

`drop_whitespace` argument only present for basic popup

Abierto
#78 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
desktop

Línea de trabajo

Locate the listed popup helper functions, including popup_yes_no and popup_ok, and inspect how each calls the basic popup. Add the optional argument consistently to the relevant helpers, then verify that passing drop_whitespace=False preserves surrounding whitespace in each text-based popup.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Hi,

I'm trying to use a yes/no popup with some whitespace surrounding the text (in order to make the popup title fully visible in all cases, regardless of popup text length). But the popup trims the whitespace.

The drop_whitespace parameter is only available for the basic popup, not for the other text-based popups (e.g. popup_yes_no).

A simple workaround is to use popup(button_type=POPUP_BUTTONS_OK_CANCEL, drop_whitespace=False), I wonder how you feel about adding the drop_whitespace parameter to the other relevant functions?

I can do the work and raise a PR if it's a good idea.

I think the relevant functions are any that just make a call to popup:

popup_non_blocking, popup_quick, popup_quick_message, popup_no_titlebar, popup_auto_close, popup_error, popup_cancel, popup_ok, popup_ok_cancel and popup_yes_no.

Lenguaje dominante
Python
Estrellas
867
Forks
106
Merge medio
1 min
PR fusionados (30 d)
2

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de spyoungtech/FreeSimpleGUI

Todos los issues de spyoungtech/FreeSimpleGUI

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.