pymhf.gui.decorators module#
- pymhf.gui.decorators.BOOLEAN(label: str, **extra_args)#
Create a boolean entry field in the form of a checkbox which can take extra arguments. To see what extra arguments are available, see the DearPyGUI documentation here.
Note: This decorator MUST be applied closer to the decorated function than the
@propertydecorator
- pymhf.gui.decorators.ENUM(label: str, enum: Type[Enum], **extra_args)#
Create an enum entry field which can take extra arguments. To see what extra arguments are available, see the DearPyGUI documentation here.
Note: This decorator MUST be applied closer to the decorated function than the
@propertydecorator
- pymhf.gui.decorators.FLOAT(label: str, is_slider: bool = False, **extra_args)#
Create a float entry field which can take extra arguments. Internally this uses double precision when interfacing with DearPyGUI to minimise loss of accuracy. To see what extra arguments are available, see the DearPyGUI documentation here. If
is_sliderisTrue, a slider will be used to render the widget instead. The allowed extra argument for this case can be found here.Note: This decorator MUST be applied closer to the decorated function than the
@propertydecorator
- pymhf.gui.decorators.INTEGER(label: str, is_slider: bool = False, **extra_args)#
Create an integer entry field which can take extra arguments. To see what extra arguments are available, see the DearPyGUI documentation here. If
is_sliderisTrue, a slider will be used to render the widget instead. The allowed extra argument for this case can be found here.Note: This decorator MUST be applied closer to the decorated function than the
@propertydecorator
- pymhf.gui.decorators.STRING(label: str, **extra_args)#
Create a string entry field which can take extra arguments. To see what extra arguments are available, see the DearPyGUI documentation here.
Note: This decorator MUST be applied closer to the decorated function than the
@propertydecorator
- pymhf.gui.decorators.gui_group(group_label: str | None = None)#
Add all the gui elements defined within this context manager to the same group. This can be nested to create sub-groups to arbitrary depth.
- class pymhf.gui.decorators.gui_variable#
Bases:
object- classmethod BOOLEAN(label: str, **extra_args)#
Create a boolean entry field in the form of a checkbox which can take extra arguments. To see what extra arguments are available, see the DearPyGUI documentation here.
Note: This decorator MUST be applied closer to the decorated function than the
@propertydecorator
- classmethod ENUM(label: str, enum: Type[Enum], **extra_args)#
Create an enum entry field which can take extra arguments. To see what extra arguments are available, see the DearPyGUI documentation here.
Note: This decorator MUST be applied closer to the decorated function than the
@propertydecorator
- classmethod FLOAT(label: str, is_slider: bool = False, **extra_args)#
Create a float entry field which can take extra arguments. Internally this uses double precision when interfacing with DearPyGUI to minimise loss of accuracy. To see what extra arguments are available, see the DearPyGUI documentation here. If
is_sliderisTrue, a slider will be used to render the widget instead. The allowed extra argument for this case can be found here.Note: This decorator MUST be applied closer to the decorated function than the
@propertydecorator
- classmethod INTEGER(label: str, is_slider: bool = False, **extra_args)#
Create an integer entry field which can take extra arguments. To see what extra arguments are available, see the DearPyGUI documentation here. If
is_sliderisTrue, a slider will be used to render the widget instead. The allowed extra argument for this case can be found here.Note: This decorator MUST be applied closer to the decorated function than the
@propertydecorator