CustomWidget
Project description
CustomWidget
Inicializar componente
Para inicializar este componente se hara con el siguiente constructor:
AnimatedButton(width, height) donde width es anchura y height es altura del boton.
El color de la animacion por defecto es en blanco y el texto del boton "boton".
Funciones del componente
getColor()
def getColor(self):
return self._color
setColor(color)
def setColor(self, color):
self._color = color
self.rec.setStyleSheet("background-color:"+color)
getText()
def getText(self):
return self._text
setText(text)
def setText(self, text):
self._text = text
self.button.setText(text)
Funcion de las funciones
Con getColor() nos devuelve un String donde te indica el color que tiene en el momento.
Con getText() nos devuelve un String donde te indica el texto que tiene en el momento.
Con setColor(texto) le pasamos un String con lo que queremos que ponga en el boton.
Con setText(texto) le pasamos un String con lo que queremos que ponga en el boton.
Pagina personal
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file CustomWidget-0.1.0.tar.gz.
File metadata
- Download URL: CustomWidget-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ceb94eacaf79a19307c2b4ecf2a5c4f4aec022b6e9003de4d4eec0f2f4a7e446
|
|
| MD5 |
17947904492370a3fd40db070a25927c
|
|
| BLAKE2b-256 |
952ba0ff8d94ddd2634a727aac4988032cfc74be12b3633440e233a3278f7a54
|
File details
Details for the file CustomWidget-0.1.0-py3-none-any.whl.
File metadata
- Download URL: CustomWidget-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5986e214ee1c154d40743a5fb04ada4fbbbb0ad1e16acd2576657a506558bf5d
|
|
| MD5 |
0fc76579e677903ef4cbb5032db97560
|
|
| BLAKE2b-256 |
d12c27599dacfe53b56f6a3da5aef5f1522e3a44bef7680d54b82ae63b01bd77
|