User Tools

Site Tools


appunti3s:modulo_python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
appunti3s:modulo_python [2020/07/14 19:10] profproappunti3s:modulo_python [2020/07/29 18:38] (current) profpro
Line 31: Line 31:
 Dato che un modulo da importare non è altro che un file.py, è facile crearne uno Dato che un modulo da importare non è altro che un file.py, è facile crearne uno
  
-miomodulo.py+miomodulo.py (di solito nella sotto-cartella "lib", può contenere una classe (con iniziale maiuscola))
  
 <file python miomodulo.py> <file python miomodulo.py>
Line 52: Line 52:
  
 Come in linguaggio C, anche in Python, in alto si definiscono le funzioni e poi si eseguono le eventuali istruzioni Come in linguaggio C, anche in Python, in alto si definiscono le funzioni e poi si eseguono le eventuali istruzioni
 +
 +
 +
 +===Approfondimento su python-tk===
 +
 +Installando python-tk diventa disponibile una interfaccia per usare Tk . Infatti **Tk inter** sta per interfaccia
 +
 +https://packages.debian.org/bullseye/tk
 +
 +  Tk is a cross-platform graphical toolkit
 +
 +
 +
 +Tk non fa parte di python, per questo è necessaria un'interfaccia
 +
 +
 +
appunti3s/modulo_python.txt · Last modified: 2020/07/29 18:38 by profpro