One difference is, that python macros must contain the word 'python' in the first line to be recognize as a python macro. There are only a few python specific differences. The application interface has the same structure. Python macros can be used in the same way as C/C++ macros. The Windows-installer as well as the Windows XP packages do not include any scripting. It is includes in any Linux and Mac package as well as the ZIP packages for Windows. LayoutEditor for Python is shipped with the LayoutEditor in most packages. Review this script is also a good start to learn LayoutEditor for python. The 'layout.py' ( layout.pyw) script build a complete LayoutEditor application from python. A LayoutEditor full version license key had to be registered inside the normal LayoutEditor before loading the module. To use it a stand alone python script the environment variables PYTHONHOME, PYTHONPATH, PATH and LD_LIBRARY_PATH had to be set correctly. Script using pylayout can be started from the integrated TextEditor with the execute button without any further setup. The LayoutEditor Python module is named pylayout. void schematic::sheetsChanged(stringList list,string currentCell ).void layout::cellsChanged(stringList list,string currentCell ).void layout::newCurrentCell(const string &s).void schematicDisplay::setSheet(const string &s).void schematicDisplay::setPolygonMode().void schematicDisplay::setPlaceComponentMode(component *c).bool schematicDisplay::setModifySaved().bool schematicDisplay::setModifåhanged().void schematicDisplay::setLabelNodeMode().bool schematicDisplay::setModifyAdded().void schematicDisplay::mutexChangeUnlock().bool schematicDisplay::mutexChangeGuiTryLock().bool schematicDisplay::mutexChangeTryLock().void schematicDisplay::mutexChangeLock().void schematicDisplay::mutexReadUnlock().bool schematicDisplay::mutexReadGuiTryLock().bool schematicDisplay::mutexReadTryLock().void schematicDisplay::mutexAddUnlock().bool schematicDisplay::mutexAddGuiTryLock().void schematic::menuAdd(string name,string entries ).QMenu * schematic::getMenu(string name).void layout::menuAdd(string name,string entries ). bool drawingField::showDeviceNode(string device,int i).bool drawingField::showDevice(string device).void drawingField::setLengthElementMode().void drawingField::setInsertPointMode().void drawingField::setElementSizeMode().void drawingField::setCellrefArrayMode().void drawingField::setAlignBottomMode().void drawingField::setAlignCenterYMode().void drawingField::setAlignCenterXMode().void drawingField::setAlignCenterMode().bool drawingField::mutexChangeGuiTryLock().bool drawingField::mutexChangeTryLock().bool drawingField::mutexReadGuiTryLock().bool drawingField::mutexAddGuiTryLock().booleanHandler::booleanHandler(drawingField *drawing).
0 Comments
Leave a Reply. |