# core.commands:Set


Class representing a Setter-command of a ControlGUI.


Usage

``` python
core.commands:Set(
    dtype,
    setfunc,
    setargs=None,
    polling_cmd=None,
)
```


## Methods

| Name | Description |
|----|----|
| [__init__()](#__init__) | Initialize the Set command. |

------------------------------------------------------------------------


### \_\_init\_\_()


Initialize the Set command.


Usage

``` python
__init__(
    dtype,
    setfunc,
    setargs=None,
    polling_cmd=None,
)
```


#### Parameters


`dtype: type`  
Data type of the connected variable.

`setfunc: callable`  
Setter function to change the connected variable.

`setargs: tuple or None = None`  
Optional additional arguments for the setter function.

`polling_cmd: str or None = None`  
Optional command to poll to check if the setpoint was reached.
