Skip to main content

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

  1. getColor()
def getColor(self):
      return self._color
  1. setColor(color)
def setColor(self, color):
      self._color = color
      self.rec.setStyleSheet("background-color:"+color)
  1. getText()
def getText(self):
      return self._text
  1. 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

Release files for CustomWidget 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CustomWidget 0.1.0
File Size Uploaded
CustomWidget-0.1.0.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for CustomWidget 0.1.0
File Interpreter ABI Platform
CustomWidget-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.5 kB

Release files / CustomWidget-0.1.0.tar.gz

Download URL CustomWidget-0.1.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ceb94eacaf79a19307c2b4ecf2a5c4f4aec022b6e9003de4d4eec0f2f4a7e446
BLAKE2b-256 checksum
How to use checksums
952ba0ff8d94ddd2634a727aac4988032cfc74be12b3633440e233a3278f7a54
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / CustomWidget-0.1.0-py3-none-any.whl

Download URL CustomWidget-0.1.0-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5986e214ee1c154d40743a5fb04ada4fbbbb0ad1e16acd2576657a506558bf5d
BLAKE2b-256 checksum
How to use checksums
d12c27599dacfe53b56f6a3da5aef5f1522e3a44bef7680d54b82ae63b01bd77
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page