# Botón de comando (button) --- ## Propiedades --- ### **type** Devuelve el tipo de control. ```py app.debug(button.type) ```
### **value** Devuelve o establece la etiqueta del control. ```py button.value = 'Cerrar' ```
## Métodos --- ## Eventos --- ### **action** Se ejecuta al dar click con el botón primario del ratón y con las teclas ++enter++ y ++"Barra Espaciadora"++ cuando el botón de comando tiene el foco. ```py def button_action(self, event): return ```
### **click** Se ejecuta al dar click con cualquier botón del ratón. ```py def button_click(self, event): return ```
### **double_click** Se ejecuta al dar doble click con cualquier botón del ratón. ```py def button_double_click(self, event): return ``` ## Propiedades pyUNO | Nombre | Descripción | | ------ | ----------- | | Align | | | BackgroundColor | | | ContextWritingMode | | | DefaultButton | | | DefaultControl | | | EnableVisible | | | Enabled | | | FocusOnClick | | | FontCharWidth | | | FontCharset | | | FontDescriptor | | | FontEmphasisMark | | | FontFamily | | | FontHeight | | | FontKerning | | | FontName | | | FontOrientation | | | FontPitch | | | FontRelief | | | FontSlant | | | FontStrikeout | | | FontStyleName | | | FontType | | | FontUnderline | | | FontWeight | | | FontWidth | | | FontWordLineMode | | | Graphic | | | Height | | | HelpText | | | HelpURL | | | ImageAlign | | | ImagePosition | | | ImageURL | | | Label | | | MultiLine | | | Name | | | PositionX | | | PositionY | | | Printable | | | PushButtonType | | | ReferenceDevice | | | Repeat | | | RepeatDelay | | | ResourceResolver | | | State | | | Step | | | TabIndex | | | Tabstop | | | Tag | | | TextColor | | | TextLineColor | | | Toggle | | | VerticalAlign | | | Width | | | WritingMode | |