BenjaBaker
Profilo di
Nome | BenjaBaker |
---|---|
Indirizzo email | n/a |
Messaggi | 2 |
-
- 2025-07-16 09:42:35
- Re: Punto di avvio di una applicazione modulare
- Forum >> Programmazione Python >> Scripting
-
inux : Studiare ed implementare notify2 - python-dbus Per Windows : Studiare ed implementare Windows-Toasts ''' starter.go() Ora, tal modo di procedere, seppur funzionante non mi sembra "giusto", ogni tanto mi pongo il problema ma, come detto, non mi è riuscito, al momento, di trovare modalità altre ... la domanda è : è possibile utilizzare lanmessage.starter.py quale punto di avvio della applicazione conservando lo spazio dei nomi del modulo? Se si, come si può fare?
Is there a clean way to start my Python application while preserving the module's namespace? Yes! I've had success using if __name__ == "__main__": in lanmessage.starter.py to trigger the starter.go() function only when the file is run directly. It avoids accidental execution upon import. This reminds me of the chaotic fun of Basket Random .
-
- 2025-07-16 09:40:54
- Re: Visuliazzazione lista incolonnata mediante scrollbar
- Forum >> Programmazione Python >> GUI
- 8)]Ah, I see you're struggling with aligning data in a scrollable list. I remember facing a similar issue! What helped me was using a fixed-width font (like Courier New) and padding the strings to the desired length using .ljust()8)] or .rjust()8)]. Did you try that? Works wonders!
--- Ultima modifica di BenjaBaker in data 2025-07-16 09:41:14 ---