Geometry advanced options

This commit is contained in:
David Robertson
2020-05-09 18:21:50 +01:00
parent 6a6674c368
commit 2e54dc6920
4 changed files with 144 additions and 254 deletions

View File

@@ -2,7 +2,7 @@ from typing import Union, Sequence, List
from PyQt5 import QtWidgets
from flatcamGUI.GUIElements import RadioSet, FCCheckBox, FCButton, FCComboBox, FCEntry, FCSpinner, FCColorEntry, \
FCSliderWithSpinner, FCDoubleSpinner
FCSliderWithSpinner, FCDoubleSpinner, FloatEntry
import gettext
import FlatCAMTranslation as fcTranslate
@@ -64,12 +64,15 @@ class BasicOptionUI(OptionUI):
class LineEntryOptionUI(BasicOptionUI):
def __init__(self, option: str, label_text: str, **kwargs):
super().__init__(option=option, label_text=label_text, **kwargs)
def build_entry_widget(self) -> QtWidgets.QWidget:
return FCEntry()
# Not sure why this is needed over DoubleSpinnerOptionUI
class FloatEntryOptionUI(BasicOptionUI):
def build_entry_widget(self) -> QtWidgets.QWidget:
return FloatEntry()
class RadioSetOptionUI(BasicOptionUI):