Canvas Main Window (canvasmain)

class orangecanvas.application.canvasmain.CanvasMainWindow(*args, **kwargs)[source]

Bases: PyQt5.QtWidgets.QMainWindow

set_widget_registry(widget_registry: WidgetRegistry)[source]

Set widget registry.

Parameters

widget_registry (WidgetRegistry) –

current_document() SchemeEditWidget[source]

Return the current displayed editor (SchemeEditWidget)

create_new_window() CanvasMainWindow[source]

Create a new top level CanvasMainWindow instance.

The window is positioned slightly offset to the originating window (self).

Note

The window has Qt.WA_DeleteOnClose flag set. If this flag is unset it is the callers responsibility to explicitly delete the widget (via deleteLater or sip.delete).

Returns

window

Return type

CanvasMainWindow

new_workflow_window() CanvasMainWindow[source]

Create and show a new CanvasMainWindow instance.