I did a small demo test with pythonOCC version 7.8.1 and found that when using pyside6 as the backend for the model display window, it keeps prompting: no backend has been imported yet with “load_backend” . I tried to do the following settings, but the problem persists.
os.environ["PYTHONOCC_OFFSCREEN_RENDERER"]="0"
load_backend("pyside6")
display, start_display, add_menu, add_function_to_menu = init_display()
Make the following settings in the display window:
try:
self.occ_widget = qtViewer3d(display._parent)
except AttributeError:
self.occ_widget = qtViewer3d()
display.CreateView()
I did a small demo test with pythonOCC version 7.8.1 and found that when using pyside6 as the backend for the model display window, it keeps prompting: no backend has been imported yet with “load_backend” . I tried to do the following settings, but the problem persists.
os.environ["PYTHONOCC_OFFSCREEN_RENDERER"]="0"
load_backend("pyside6")
display, start_display, add_menu, add_function_to_menu = init_display()
Make the following settings in the display window:
try:
self.occ_widget = qtViewer3d(display._parent)
except AttributeError:
self.occ_widget = qtViewer3d()
display.CreateView()