PySide

From FreeCAD Documentation
Revision as of 06:23, 19 August 2018 by Luc (talk | contribs) (Created page with "PySide este descris în următoarele 3 pagini care ar trebui să urmeze una după alta:")

PySide

PySide este o legare instrument Python multiplatformă obligatoriu pentru a crea GUI în QT. FreeCAD utilizează PySide pentru toate GUI (Graphic User Interface) în interiorul Python. PySide este o alternativă la pachetul PyQt folosit anterior de FreeCAD pentru GUI. PySide are o licență mai permisivă. A se vedea Differences Between PySide and PyQt for more information on the differences.

Utilizatorii de FreeCAD ating adesea limitele interfeței integrate. Dar pentru utilizatorii care doresc să personalizeze operațiile lor Interfața Python există și este documentată în Tutorialul de script Python. Interfața pentru FreeCAD dă o mare flexibilitatea și crește puterea FreeCAD. Pentru această interacțiune, utilizatorul de Python și Freecad , noi utilizăm PySide care este documetnat în această pagină.

Python oferă instrucțiunea "print" care dă codul:

print 'Hello World'

Cu instrucțiune print din Python aveți un control limatat asupra aparenței și a compartamentului/ PySide furnizează controlul lipsă și administrează mediul (ca de exemplu mediul macrocomenzilor FreeCAD) acolo undew instalările integrare ale Python nu sunt suficiente

Abilitățile PySide variază de :

la:

PySide este descris în următoarele 3 pagini care ar trebui să urmeze una după alta:

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.

Pivy
Scripted objects