Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Return only qwin
  • Loading branch information
adam-urbanczyk committed Dec 8, 2024
commit 107523acaf47940d7d23afcc69892ff6585ff0aa
10 changes: 4 additions & 6 deletions cadquery/vis.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def show(

# QT+VTK window boilerplate
qwin = QMainWindow()
widget = QVTKRenderWindowInteractor()
widget = QVTKRenderWindowInteractor(qwin)
qwin.setCentralWidget(widget)

widget.GetRenderWindow().AddRenderer(renderer)
Expand Down Expand Up @@ -214,8 +214,8 @@ def show(
# add to an orientation widget
orient_widget = vtkOrientationMarkerWidget()
orient_widget.SetOrientationMarker(axes)
orient_widget.SetViewport(0.9, 0.0, 1.0, 0.2)
orient_widget.SetZoom(1.1)
orient_widget.SetViewport(0.9, 0, 1.0, 0.2)
orient_widget.SetZoom(1.5)
orient_widget.SetInteractor(inter)
orient_widget.EnabledOn()
orient_widget.InteractiveOff()
Expand Down Expand Up @@ -251,9 +251,7 @@ def show(
widget.Initialize()
widget.Start()

widget.qwin = qwin

return widget
return qwin


# alias
Expand Down
Loading