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
CustomWidget-0.1.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for CustomWidget-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5986e214ee1c154d40743a5fb04ada4fbbbb0ad1e16acd2576657a506558bf5d |
|
MD5 | 0fc76579e677903ef4cbb5032db97560 |
|
BLAKE2b-256 | d12c27599dacfe53b56f6a3da5aef5f1522e3a44bef7680d54b82ae63b01bd77 |