def __init__(self, parent=None): super(AxisScaleWidget, self).__init__(parent) axis_from_spinbox = QtGui.QDoubleSpinBox() axis_from_spinbox.setToolTip('Specifies the axis maximum') axis_from_spinbox.setSingleStep(0.1) axis_to_spinbox = QtGui.QDoubleSpinBox() axis_to_spinbox.setToolTip('Specifies the axis maximum') axis_to_spinbox.setSingleStep(0.1) type_combobox = QtGui.QComboBox() inverted_checkbox = QtGui.QCheckBox('Inverted') step_radio = QtGui.QRadioButton('Step') major_ticks_radio = QtGui.QRadioButton('Step') minor_ticks_label = QtGui.QLabel('Minor Ticks') minor_ticks_combo = QtGui.QComboBox() minor_ticks_combo.setEditable(True) for val in (0, 1, 4, 9, 14, 19): minor_ticks_combo.addItem(str(val)) axis_break_checkbox = QtGui.QCheckBox('Show Axis Break') axis_break_decoration_checkbox = QtGui.QCheckBox('Draw Break Decoration') axis_break_from_spinbox = QtGui.QDoubleSpinBox() axis_break_to_spinbox = QtGui.QDoubleSpinBox()
def __init__(self, parent=None): super(GridWidget, self).__init__() color_label = QtGui.QLabel('Line Color') type_label = QtGui.QLabel('Line Type') thickness_label = QtGui.QLabel('Thickness') axes_label = QtGui.QLabel('Axes') lines_label = QtGui.QLabel('Lines') major_grids_check = QtGui.QCheckBox('Major Grids') minor_grids_check = QtGui.QCheckBox('Minor Grids') major_color = QtGui.QPushButton('') minor_color = QtGui.QPushButton('') minor_linetype_combo = self.new_linetype_combo() major_linetype_combo = self.new_linetype_combo()