OCC.Display.SimpleGui module¶
-
check_callable
(_callable)¶
-
init_display
(backend_str=None, size=(1024, 768))¶ This function loads and initialize a GUI using either wx, pyq4, pyqt5 or pyside. If ever the environment variable PYTHONOCC_OFFSCREEN_RENDERER, then the GUI is simply ignored and an offscreen renderer is returned. init_display returns 4 objects : * display : an instance of Viewer3d ; * start_display : a function (the GUI mainloop) ; * add_menu : a function that creates a menu in the GUI * add_function_to_menu : adds a menu option
In case an offscreen renderer is returned, start_display and add_menu are ignored, i.e. an empty function is returned (named do_nothing). add_function_to_menu just execute the function taken as a paramter.
Note : the offscreen renderer is used on the travis side.