23 from PyQt5
import QtCore, QtWidgets
24 from .render_mode_widget
import RenderModeWidget
29 RenderModeWidget.__init__(self, parent)
41 self.
mode_mode_ = gfx.RenderMode.SIMPLE
47 self.
radius_spinbox_radius_spinbox_.setRange(min_line_width, max_line_width)
58 simple_label = QtWidgets.QLabel(
"Fast Bonds Simple Settings")
59 font = simple_label.font()
62 radius_label = QtWidgets.QLabel(
"Line Width")
63 aa_label = QtWidgets.QLabel(
"AA-Lines")
64 bo_label = QtWidgets.QLabel(
"Show Bond Order")
65 bo_distance = QtWidgets.QLabel(
"Bond Order Distance")
67 grid = QtWidgets.QGridLayout()
68 grid.addWidget(simple_label,0,0,1,3)
69 grid.addWidget(aa_label, 1, 0, 1, 3)
71 grid.addWidget(radius_label,2,0,1,3)
73 grid.addWidget(bo_label, 3, 0, 1, 3)
75 grid.addWidget(bo_distance, 4, 0, 1, 3)
77 grid.setRowStretch(5,1)
84 self.setMinimumSize(250,140)
86 self.setMinimumSize(250,140)
93 self.
GetOptionsGetOptions().SetLineWidth(value)
97 self.
GetOptionsGetOptions().SetBondOrderFlag(value)
101 self.
GetOptionsGetOptions().SetBondOrderDistance(value)
107 self.
bo_rendering_cb_bo_rendering_cb_.setChecked(options.GetBondOrderFlag())
111 return self.
text_text_
114 return self.
mode_mode_