Since the relevant things are too many, I tried to import all of them through `from cq_editor.widgets import viewer as cqv` (see the following code)
import sys
from OCP.BRepPrimAPI import BRepPrimAPI_MakeBox
from cq_editor.widgets import viewer as cqv
app = cqv.QApplication(sys.argv)
viewer = cqv.OCCViewer()
viewer.show_line()
...
but at the last line above I get the error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\NUC-W10\Miniconda3\envs\cqgui-master\lib\site-packages\cq_editor\widgets\viewer.py", line 292, in show_line
self._display_ais(line)
File "C:\Users\NUC-W10\Miniconda3\envs\cqgui-master\lib\site-packages\cq_editor\widgets\viewer.py", line 302, in _display_ais
self._get_context().Display(ais)
TypeError: Display(): incompatible function arguments. The following argument types are supported:
1. (self: OCP.AIS.AIS_InteractiveContext, theIObj: OCP.AIS.AIS_InteractiveObject, theToUpdateViewer: bool) -> None
2. (self: OCP.AIS.AIS_InteractiveContext, theIObj: OCP.AIS.AIS_InteractiveObject, theDispMode: int, theSelectionMode: int, theToUpdateViewer: bool, theDispStatus: OCP.AIS.AIS_DisplayStatus = AIS_DisplayStatus.AIS_DS_None) -> None
3. (self: OCP.AIS.AIS_InteractiveContext, theIObj: OCP.AIS.AIS_InteractiveObject, theDispMode: int, theSelectionMode: int, theToUpdateViewer: bool, theToAllowDecomposition: bool, theDispStatus: OCP.AIS.AIS_DisplayStatus = AIS_DisplayStatus.AIS_DS_None) -> None
Invoked with: <OCP.AIS.AIS_InteractiveContext object at 0x00000235D5D1D6B0>, <OCP.AIS.AIS_Line object at 0x00000235DAC8C6F0>