vpype_viewer.QtViewer#

class QtViewer(document: Document | None = None, view_mode: ViewMode = ViewMode.PREVIEW, show_pen_up: bool = False, show_points: bool = False, parent=None)#

Full-featured, stand-alone viewer suitable for displaying a vpype.Document to a user.

Classes

Methods

Attributes

Parameters:
  • document (vp.Document | None) --

  • view_mode (ViewMode) --

  • show_pen_up (bool) --

  • show_points (bool) --

Methods#

QtViewer._update_layer_menu()#
QtViewer.add_side_widget(widget: QWidget) None#
Parameters:

widget (QWidget) --

Return type:

None

QtViewer.set_debug(debug: bool) None#
Parameters:

debug (bool) --

Return type:

None

QtViewer.set_default_pen_opacity(value: float | QAction) None#
Parameters:

value (float | QAction) --

Return type:

None

QtViewer.set_default_pen_width_mm(value: float | QAction) None#
Parameters:

value (float | QAction) --

Return type:

None

QtViewer.set_document(document: Document | None) None#
Parameters:

document (Document | None) --

Return type:

None

QtViewer.set_mouse_coords(txt: str) None#
Parameters:

txt (str) --

Return type:

None

QtViewer.set_override_pen_opacity(value: bool) None#
Parameters:

value (bool) --

Return type:

None

QtViewer.set_override_pen_width(value: bool) None#
Parameters:

value (bool) --

Return type:

None

QtViewer.set_show_pen_up(show_pen_up: bool) None#
Parameters:

show_pen_up (bool) --

Return type:

None

QtViewer.set_show_points(show_points: bool) None#
Parameters:

show_points (bool) --

Return type:

None

QtViewer.set_show_rulers(show_rulers: bool) None#
Parameters:

show_rulers (bool) --

Return type:

None

QtViewer.set_unit_type(sender: QAction) None#
Parameters:

sender (QAction) --

Return type:

None

QtViewer.set_view_mode(mode: ViewMode) None#
Parameters:

mode (ViewMode) --

Return type:

None

Attributes#

QtViewer.staticMetaObject = PySide6.QtCore.QMetaObject("QtViewer" inherits "QWidget": )#