Feature Request: Additional Clarification on "Simple Example" in "introduction.txt"
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Documentación
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- documentation
Línea de trabajo
Abre introduction.txt y lee la sección 2.1 junto con sus dos ejemplos de ventanas. Comprueba cómo describe actualmente el texto la ventana de 200 x 200 y la ventana de Hello World de distinto tamaño; la documentación estará terminada cuando explique el comportamiento relevante del tamaño y los valores predeterminados sin dejar esos ejemplos sin explicación.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I hope this isn't too pedantic as a request, but just reading section 2.1 of the guide from the top, the first statement claims, "This program will create an empty 200 x 200 pixel window."
A graphical representation of such a window is then included.
The page then provides a 9-line program by way of an example, in source code, then follows to "explain each line of the example."
However, nowhere on this page does the text return to the subject of "200 x 200 pixel" sizing. It seems reasonable for the initial declarative statement to explain what is about to happen, but there is nothing in the sample code which defines such a size and it is therefore implied that Python's "Gtk.Window()" method, or perhaps "win.show_all()", must somehow default to these dimensions unless explicitly told otherwise.
If you're going to have a "simple example", can I respectfully request/suggest that the explanatory text be expanded just enough to tell the reader where the window dimensions come from.
I appreciate that this might come across as pedantry, but syntax is critical in programming, so in the early stages of introducing a language or framework, I would suggest that all defaults and assumptions need to be discussed.
This is all the more relevant given the second example on the Introduction Page (the ubiquitous "Hello World" application with the "Click Here" button. Miraculously, the rendered window has changed size. Yet again, there is nothing in the code to suggest window size or why this might be different from the first example. The two examples imply that if you deploy a random, empty window, then it will default to a size of 200x200 pixels, but if you deploy a window that contains an object (your second example uses a button), then the window will automatically size itself to the dimensions of the rendered contents.
None of which is explained.
Even if you want to direct your reader to set this aside, please don't leave hanging threads at the start...
Thank you
- Lenguaje dominante
- Python
- Estrellas
- 392
- Forks
- 157
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de sebp/PyGObject-Tutorial
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
sebp/PyGObject-Tutorial#229 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
sebp/PyGObject-Tutorial#219 ·
-
Missing initial steps Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
sebp/PyGObject-Tutorial#218 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
sebp/PyGObject-Tutorial#214 ·
-
Entry show show entered Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 52/100
sebp/PyGObject-Tutorial#210 ·
Todos los issues de sebp/PyGObject-Tutorial
Issues similares
-
link-check link-check:sphinx-theme
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
OpenHands/extensions#626 · 1 comentario ·
-
Change observation tooltip text Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
CSCfi/sd-search-api#39 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100