Core: Fixing missing python bindings. (#23054)
* Adding missing python interfaces. * fixing interface includes. * attempting fix for CI build error related to path resolution. * testing build * More testing via Github Actions... * renaming files * fixing comparison operator. * reverting... * fixing CMakeLists * fixing binding generation issue
This commit is contained in:
@@ -23,6 +23,7 @@ qt_add_resources(AssemblyResource_SRCS Resources/Assembly.qrc ${Assembly_TR_QRC}
|
||||
SOURCE_GROUP("Resources" FILES ${AssemblyResource_SRCS})
|
||||
|
||||
generate_from_xml(ViewProviderAssemblyPy)
|
||||
generate_from_py_(ViewProviderAssemblyPy)
|
||||
|
||||
set(AssemblyGui_UIC_SRCS
|
||||
TaskAssemblyCreateBom.ui
|
||||
|
||||
50
src/Mod/Assembly/Gui/ViewProviderAssemblyPy.pyi
Normal file
50
src/Mod/Assembly/Gui/ViewProviderAssemblyPy.pyi
Normal file
@@ -0,0 +1,50 @@
|
||||
from typing import Any
|
||||
|
||||
from Base.Metadata import export
|
||||
|
||||
from Gui.ViewProvider import ViewProvider
|
||||
|
||||
@export(
|
||||
Father="ViewProviderPy",
|
||||
Name="ViewProviderAssemblyPy",
|
||||
Twin="ViewProviderAssembly",
|
||||
TwinPointer="ViewProviderAssembly",
|
||||
Include="Mod/Assembly/Gui/ViewProviderAssembly.h",
|
||||
Namespace="AssemblyGui",
|
||||
FatherInclude="Gui/ViewProviderPy.h",
|
||||
FatherNamespace="Gui",
|
||||
)
|
||||
class ViewProviderAssemblyPy(ViewProvider):
|
||||
"""
|
||||
This is the ViewProviderAssembly class
|
||||
"""
|
||||
|
||||
def isInEditMode(self) -> Any:
|
||||
"""
|
||||
Return true if the assembly object is currently in edit mode.
|
||||
|
||||
isInEditMode() -> bool"""
|
||||
...
|
||||
|
||||
def getDragger(self) -> Any:
|
||||
"""
|
||||
Return the assembly dragger coin object.
|
||||
|
||||
getDragger() -> SoTransformDragger
|
||||
|
||||
Returns: dragger coin object of the assembly"""
|
||||
...
|
||||
EnableMovement: bool
|
||||
"""Enable moving the parts by clicking and dragging."""
|
||||
|
||||
MoveOnlyPreselected: bool
|
||||
"""If enabled, only the preselected object will move."""
|
||||
|
||||
MoveInCommand: bool
|
||||
"""If enabled, each move will be wrapped in a command."""
|
||||
|
||||
DraggerVisibility: bool
|
||||
"""Show or hide the assembly dragger."""
|
||||
|
||||
DraggerPlacement: Any
|
||||
"""Placement of the assembly dragger object."""
|
||||
Reference in New Issue
Block a user