![]() Let’s take a very basic example of application with PySide2 on their website : import sysįrom PySide2.QtWidgets import QApplication, QLabel Use your script as a macro or as a full workbenchĪs explained on the wiki page FreeCAD can be embedded in another application sharing the host event loop.You might want to keep an eye on Vanuan freecad-python-stubs. ![]() Still unperfect but far better than before. Update: I have generated stubs with mypy stubgen. Shall we generate stubs like Gui Talarico did for Revit API or is there a better way ? Unfortunately auto-completion and linter do not work for everything eg. env file concept is explained in Code – OSS help : Environment variable definitions file. (Note that on windows you need to replace : by ) env file referencing FreeCAD lib folder and optionally your stubs folder :įREECAD_STUBS=/home//git/freecad-stubs/out
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |