23 from PyQt4
import QtCore, QtGui
24 from render_mode_widget
import RenderModeWidget
29 RenderModeWidget.__init__(self, parent)
36 max_sphere_detail = 20
44 self.sphere_spinbox_.setRange(min_sphere_detail, max_sphere_detail)
45 cpk_mode_label = QtGui.QLabel(
"Rendering Mode")
47 self.cpk_mode_.addItem(
"Triangles")
48 self.cpk_mode_.addItem(
"3D Sprites")
49 cpk_label = QtGui.QLabel(self.
text_)
50 font = cpk_label.font()
53 sphere_label = QtGui.QLabel(
"Sphere Detail")
54 grid = QtGui.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.GetOptions().SetSphereDetail(value)
71 self.GetOptions().SetSphereMode(value)
75 self.sphere_spinbox_.setValue(options.GetSphereDetail())
76 self.cpk_mode_.setCurrentIndex(options.GetSphereMode())