PySide/it: Difference between revisions

From FreeCAD Documentation
(Created page with "Con l'istruzione print di Python si ha solo un controllo limitato dell'aspetto e del comportamento. PySide fornisce il controllo mancante e gestisce anche gli ambienti (come a...")
(Created page with "Le funzionalità di PySide vanno da:")
Line 11: Line 11:
Con l'istruzione print di Python si ha solo un controllo limitato dell'aspetto e del comportamento. PySide fornisce il controllo mancante e gestisce anche gli ambienti (come ad esempio i file dell'ambiente macro di FreeCAD) dove le funzioni incorporate in Python non sono sufficienti.
Con l'istruzione print di Python si ha solo un controllo limitato dell'aspetto e del comportamento. PySide fornisce il controllo mancante e gestisce anche gli ambienti (come ad esempio i file dell'ambiente macro di FreeCAD) dove le funzioni incorporate in Python non sono sufficienti.


Le funzionalità di PySide vanno da:
PySide's abilities range from:


[[File:PySideScreenSnapshot1.jpg]]
[[File:PySideScreenSnapshot1.jpg]]

Revision as of 21:23, 10 February 2015

PySide

PySide is a Python binding of the cross-platform GUI toolkit Qt. FreeCAD uses PySide for all GUI (Graphic User Intercase) purposes. PySide evolved from the PyQt package which was previously used by FreeCAD for it's GUI. See Differences Between PySide and PyQt for more information on the differences.

Gli utenti di FreeCAD spesso accedono a tutto tramite l'interfaccia integrata. Ma per gli utenti che desiderano personalizzare le loro operazioni esiste l'interfaccia Python, che è documentata nel Tutorial degli script Python. L'interfaccia Python per FreeCAD è molto flessibile e potente. Questa pagina documenta l'interazione di Python con FreeCAD tramite PySide.

Python offre la dichiarazione 'print', data dal codice:

print 'Hello World'

Con l'istruzione print di Python si ha solo un controllo limitato dell'aspetto e del comportamento. PySide fornisce il controllo mancante e gestisce anche gli ambienti (come ad esempio i file dell'ambiente macro di FreeCAD) dove le funzioni incorporate in Python non sono sufficienti.

Le funzionalità di PySide vanno da:

to:

PySide is described in the following 3 pages which should follow on one from each other:

They divide the subject matter into 3 parts, differentiated by level of exposure to PySide, Python and the FreeCAD internals. The first page has overview and background material giving a description of PySide and how it is put together while the second and third pages are mostly code examples at different levels.

The intention is that the associated pages will provide simple Python code to run PySide so that the user working on a problem can easily copy the code, paste it into their own work, adapt it as necessary and return to their problem solving with FreeCAD. Hopefully they don't have to go chasing off across the internet looking for answers to PySide questions. At the same time this page is not intended to replace the various comprehensive PySide tutorials and reference sites available on the web.