mirror of
https://github.com/nqrduck/quackseq.git
synced 2024-11-21 13:32:25 +00:00
Added a scientific notation argument.
This commit is contained in:
parent
16638e2b15
commit
3cf8000389
1 changed files with 3 additions and 0 deletions
|
@ -146,6 +146,7 @@ class IntSetting(NumericalSetting):
|
|||
max_value : The maximum value of the setting
|
||||
slider : If the setting should be displayed as a slider (only in the GUI not used in this GUI)
|
||||
suffix : The suffix that is added to the value of the QSpinBox
|
||||
scientific_notation : If the value should be displayed in scientific notation
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
|
@ -158,11 +159,13 @@ class IntSetting(NumericalSetting):
|
|||
max_value=None,
|
||||
slider=False,
|
||||
suffix="",
|
||||
scientific_notation=False,
|
||||
) -> None:
|
||||
"""Create a new int setting."""
|
||||
super().__init__(name, category, description, default, min_value, max_value)
|
||||
self.slider = slider
|
||||
self.suffix = suffix
|
||||
self.scientific_notation = scientific_notation
|
||||
|
||||
@property
|
||||
def value(self):
|
||||
|
|
Loading…
Reference in a new issue