23 from PyQt5
import QtCore, QtWidgets
24 from .render_mode_widget
import RenderModeWidget
29 RenderModeWidget.__init__(self, parent)
36 max_sphere_detail = 20
39 self.
mode_mode_ = gfx.RenderMode.CPK
44 self.
sphere_spinbox_sphere_spinbox_.setRange(min_sphere_detail, max_sphere_detail)
45 cpk_mode_label = QtWidgets.QLabel(
"Rendering Mode")
47 self.
cpk_mode_cpk_mode_.addItem(
"Triangles")
48 self.
cpk_mode_cpk_mode_.addItem(
"3D Sprites")
49 cpk_label = QtWidgets.QLabel(self.
text_text_)
50 font = cpk_label.font()
53 sphere_label = QtWidgets.QLabel(
"Sphere Detail")
54 grid = QtWidgets.QGridLayout()
55 grid.addWidget(cpk_label,0,0,1,1)
56 grid.addWidget(sphere_label, 1, 0, 1, 3)
58 grid.setRowStretch(2,1)
64 self.setMinimumSize(250,60)
67 self.
GetOptionsGetOptions().SetSphereDetail(value)
71 self.
GetOptionsGetOptions().SetSphereMode(value)
76 self.
cpk_mode_cpk_mode_.setCurrentIndex(options.GetSphereMode())
79 return self.
text_text_
82 return self.
mode_mode_