issue137:python
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
issue137:python [2018/10/07 08:54] – christo.2so | issue137:python [2018/10/19 14:51] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 2: | Ligne 2: | ||
When I was young, we already had our preparations ready long before the end of May. This included getting batteries for the transistor radios, creating our hurricane box stocked with candles, canned food, duct tape, flashlights, | When I was young, we already had our preparations ready long before the end of May. This included getting batteries for the transistor radios, creating our hurricane box stocked with candles, canned food, duct tape, flashlights, | ||
+ | |||
+ | Alors que je suis assis ici aux petites heures (3 h 30) du matin, nous sommes au début de septembre 2018. Nous sommes en pleine saison des ouragans. J' | ||
+ | |||
+ | Quand j' | ||
+ | |||
**Why am I holding forth on hurricanes and when I was young? I'm not really sure, but it seemed like a good idea at the time, and it might be a good way to segue into our discussion for this month. | **Why am I holding forth on hurricanes and when I was young? I'm not really sure, but it seemed like a good idea at the time, and it might be a good way to segue into our discussion for this month. | ||
Ligne 10: | Ligne 15: | ||
His problem was that when he recreated one of the examples in the tutorial and ran it, he was getting a " | His problem was that when he recreated one of the examples in the tutorial and ran it, he was getting a " | ||
+ | |||
+ | Pourquoi suis-je en train de parler d' | ||
+ | |||
+ | On m'a appris il y a longtemps que « Si vous donnez un poisson à un homme, il sera nourri pour un jour. Si, à la place, vous lui apprenez à pêcher, il sera nourri pour le reste de sa vie ». C'est une maxime que j'ai essayé d' | ||
+ | |||
+ | J'ai reçu un courriel d'un programmeur débutant qui lisait un tutoriel que j' | ||
+ | |||
+ | Son problème était que lorsqu' | ||
**This is a typical issue for new users. Especially when trying to follow a tutorial that someone wrote. | **This is a typical issue for new users. Especially when trying to follow a tutorial that someone wrote. | ||
Ligne 22: | Ligne 35: | ||
Once the new user found the cause of this problem, he stumbled across another one. This time, it wasn’t his fault. A few other Page users discovered this a number of months ago, but I was never able to recreate it.** | Once the new user found the cause of this problem, he stumbled across another one. This time, it wasn’t his fault. A few other Page users discovered this a number of months ago, but I was never able to recreate it.** | ||
+ | |||
+ | C'est un problème typique pour les nouveaux utilisateurs. Surtout quand on essaie de suivre un tutoriel que quelqu' | ||
+ | |||
+ | La ligne en question dans son code était : | ||
+ | |||
+ | if che39.get() == " | ||
+ | |||
+ | Je lui ai répondu que le problème est dû à son script Python qui utilisait un nom de variable qui n' | ||
+ | |||
+ | Il s' | ||
+ | |||
+ | Quand le nouvel utilisateur a trouvé la cause de ce problème, il est tombé sur un autre. Cette fois, ce n' | ||
+ | |||
**It seems that if you use are using Python 3.x and use a LabelFrame, SOMETIMES some of the widgets you put inside of it will end up looking compressed, somewhat like a squished car. Take a look at the sample I wrote to demonstrate this issue: | **It seems that if you use are using Python 3.x and use a LabelFrame, SOMETIMES some of the widgets you put inside of it will end up looking compressed, somewhat like a squished car. Take a look at the sample I wrote to demonstrate this issue: | ||
Ligne 28: | Ligne 54: | ||
I had seen an issue posted on the Page discussion page about this months ago, and suggested to the user that they try to use the absolute positioning mode when designing his GUI. It turns out that this actually does work. However, there are issues with this. In the absolute position mode, when you resize the GUI form in the run mode, none of the widgets will resize themselves. This is, again, not really something that you want your end users to experience. The image below, however shows that my suggestion, does work.** | I had seen an issue posted on the Page discussion page about this months ago, and suggested to the user that they try to use the absolute positioning mode when designing his GUI. It turns out that this actually does work. However, there are issues with this. In the absolute position mode, when you resize the GUI form in the run mode, none of the widgets will resize themselves. This is, again, not really something that you want your end users to experience. The image below, however shows that my suggestion, does work.** | ||
+ | |||
+ | Il semble que si vous utilisez Python 3.x et un LabelFrame, PARFOIS certains des widgets que vous mettez à l' | ||
+ | |||
+ | Cela ne ressemble vraiment pas à quelque chose que vous voulez publier en tant qu' | ||
+ | |||
+ | J' | ||
+ | |||
**Don had been aware of it for a little while, but was unable to explain what was happening. It turns out that it’s an issue with the actual TCL/TK widget, not even the Python Tkinter library. He had tried many things, thinking that it was something he had done. I just received word last night that there is a little documented flag for the widget that seems to fix the issue, and is actually marked (in the TCL documentation) that the flag “is probably not very useful”. Funny how an off-handed comment in documentation can make so much difference. | **Don had been aware of it for a little while, but was unable to explain what was happening. It turns out that it’s an issue with the actual TCL/TK widget, not even the Python Tkinter library. He had tried many things, thinking that it was something he had done. I just received word last night that there is a little documented flag for the widget that seems to fix the issue, and is actually marked (in the TCL documentation) that the flag “is probably not very useful”. Funny how an off-handed comment in documentation can make so much difference. | ||
Ligne 36: | Ligne 69: | ||
Until then, have fun!** | Until then, have fun!** | ||
+ | |||
+ | Don était au courant depuis quelque temps, mais il était incapable d' | ||
+ | |||
+ | Quoi qu'il en soit, Don et moi testons la solution maintenant et nous verrons ce qui se passera. | ||
+ | |||
+ | Eh bien, les vieux soucis médicaux refont leur apparition et mes médicaments commencent à nouveau à me rendre somnolent. Je déteste avoir à le faire, mais je conclus pour ce mois-ci. Si tout se passe comme je l' | ||
+ | |||
+ | D'ici là, amusez-vous bien ! | ||
+ | |||
issue137/python.1538895245.txt.gz · Dernière modification : 2018/10/07 08:54 de christo.2so