102 lines
1.4 KiB
Markdown
102 lines
1.4 KiB
Markdown
|
# Etiqueta (label)
|
||
|
|
||
|
---
|
||
|
|
||
|
## Propiedades
|
||
|
|
||
|
---
|
||
|
|
||
|
### **type**
|
||
|
|
||
|
Devuelve el tipo de control.
|
||
|
|
||
|
```py
|
||
|
app.debug(label.type)
|
||
|
```
|
||
|
|
||
|
<br>
|
||
|
|
||
|
### **value**
|
||
|
|
||
|
Devuelve o establece la etiqueta del control.
|
||
|
|
||
|
```py
|
||
|
label.value = 'Mi etiqueta'
|
||
|
```
|
||
|
|
||
|
<br>
|
||
|
|
||
|
## Métodos
|
||
|
|
||
|
---
|
||
|
|
||
|
## Eventos
|
||
|
|
||
|
---
|
||
|
|
||
|
### **click**
|
||
|
|
||
|
Se ejecuta al dar click con cualquier botón del ratón.
|
||
|
|
||
|
```py
|
||
|
def label_click(self, event):
|
||
|
|
||
|
return
|
||
|
```
|
||
|
|
||
|
<br>
|
||
|
|
||
|
## Propiedades pyUNO
|
||
|
|
||
|
|
||
|
| Nombre | Descripción |
|
||
|
| ------ | ----------- |
|
||
|
| Align | |
|
||
|
| BackgroundColor | |
|
||
|
| Border | |
|
||
|
| BorderColor | |
|
||
|
| ContextWritingMode | |
|
||
|
| DefaultControl | |
|
||
|
| EnableVisible | |
|
||
|
| Enabled | |
|
||
|
| FontCharWidth | |
|
||
|
| FontCharset | |
|
||
|
| FontDescriptor | |
|
||
|
| FontEmphasisMark | |
|
||
|
| FontFamily | |
|
||
|
| FontHeight | |
|
||
|
| FontKerning | |
|
||
|
| FontName | |
|
||
|
| FontOrientation | |
|
||
|
| FontPitch | |
|
||
|
| FontRelief | |
|
||
|
| FontSlant | |
|
||
|
| FontStrikeout | |
|
||
|
| FontStyleName | |
|
||
|
| FontType | |
|
||
|
| FontUnderline | |
|
||
|
| FontWeight | |
|
||
|
| FontWidth | |
|
||
|
| FontWordLineMode | |
|
||
|
| Height | |
|
||
|
| HelpText | |
|
||
|
| HelpURL | |
|
||
|
| Label | |
|
||
|
| MultiLine | |
|
||
|
| Name | |
|
||
|
| NoLabel | |
|
||
|
| PositionX | |
|
||
|
| PositionY | |
|
||
|
| Printable | |
|
||
|
| ReferenceDevice | |
|
||
|
| ResourceResolver | |
|
||
|
| Step | |
|
||
|
| TabIndex | |
|
||
|
| Tabstop | |
|
||
|
| Tag | |
|
||
|
| TextColor | |
|
||
|
| TextLineColor | |
|
||
|
| VerticalAlign | |
|
||
|
| Width | |
|
||
|
| WritingMode | |
|