Paquete comunes

Submódulos

Módulo comunes.globales

class comunes.globales.Globales[fuente]

Bases: object

Clase encargada de contener variables y constantes globales.

ESTILO_ALERT: dict = {'activebackground': '#0b0802', 'activeforeground': '#dda823', 'background': '#dda823', 'bd': 2, 'highlightbackground': '#0d0d0d', 'highlightcolor': '#ffbf28', 'highlightthickness': 0, 'width': 15}
ESTILO_BTN_LENG: dict = {'activebackground': '#00000c', 'activeforeground': '#0800ff', 'background': '#0800ff', 'bd': 2, 'height': 1, 'highlightbackground': '#0d0d0d', 'highlightcolor': '#0703ff', 'highlightthickness': 2}
ESTILO_BTN_NO_OK: dict = {'activebackground': '#100303', 'activeforeground': '#d52b2b', 'background': '#d52b2b', 'bd': 2, 'highlightbackground': '#0d0d0d', 'highlightcolor': '#ff3333', 'highlightthickness': 2}
ESTILO_BTN_OK: dict = {'activebackground': '#01120d', 'activeforeground': '#06b180', 'background': '#06b180', 'bd': 2, 'height': 1, 'highlightbackground': '#0d0d0d', 'highlightcolor': '#08d698', 'highlightthickness': 2}
ESTILO_BTN_OPC: dict = {'activebackground': '#08000c', 'activeforeground': '#7306b1', 'background': '#7306b1', 'bd': 2, 'height': 1, 'highlightthickness': 0, 'width': 13}
ESTILO_BTN_SALIR: dict = {'activebackground': '#0b0802', 'activeforeground': '#dda823', 'background': '#dda823', 'bd': 2, 'height': 1, 'highlightbackground': '#0d0d0d', 'highlightcolor': '#ffbf28', 'highlightthickness': 2, 'width': 5}
ESTILO_ETIQ: dict = {'background': '#0d0d0d', 'foreground': '#e7e7eb'}
ESTILO_ETIQ_TITULO: dict = {'background': '#d9d9d9', 'foreground': '#0d0d0d'}
ESTILO_MARCO_MOD: dict = {'background': '#0d0d0d'}
ESTILO_TX_CLAVE: dict = {'font': 'Monospace 8 bold', 'foreground': '#e7e7eb'}
ESTILO_TX_ENTRADA: dict = {'background': '#272727', 'bd': 0, 'foreground': '#08d698', 'highlightbackground': '#0d0d0d', 'highlightcolor': '#a5a5a5', 'highlightthickness': 1}
ESTILO_TX_VALOR: dict = {'font': 'Monospace 8 normal italic', 'foreground': '#08d698'}
ESTILO_TX_VISTA: dict = {'background': '#272727', 'highlightbackground': '#0d0d0d', 'highlightcolor': '#08d698', 'highlightthickness': 2}
PACK_BTN: dict = {'anchor': 's', 'padx': 5, 'pady': 5, 'side': 'left'}
PACK_BTN_SALIR: dict = {'anchor': 's', 'padx': 5, 'pady': 5, 'side': 'right'}
PACK_ENT_OPC: dict = {'anchor': 's', 'expand': False, 'side': 'bottom'}
PACK_ENT_TEX: dict = {'expand': True, 'fill': 'x', 'ipady': 3, 'pady': 2, 'side': 'top'}
PACK_ENT_TEX_FILA: dict = {'anchor': 'ne', 'expand': False, 'ipadx': 10, 'ipady': 3, 'padx': 2, 'pady': 2, 'side': 'top'}
PACK_ETIQ_APP: dict = {'anchor': 's', 'expand': False, 'padx': 5, 'pady': 12, 'side': 'bottom'}
PACK_ETIQ_ENT: dict = {'anchor': 'n', 'expand': True, 'padx': 5, 'pady': 2, 'side': 'top'}
PACK_ETIQ_ENT_FILA: dict = {'anchor': 'ne', 'padx': 25, 'pady': 5, 'side': 'top'}
PACK_ETI_ERROR: dict = {'anchor': 's', 'expand': True, 'fill': 'x', 'padx': 5, 'pady': 30, 'side': 'top'}
PACK_MARCO_BTN: dict = {'expand': False, 'fill': 'both', 'padx': 5, 'pady': 5, 'side': 'right'}
PACK_MARCO_ENT: dict = {'anchor': 'w', 'expand': True, 'fill': 'x', 'padx': 5, 'pady': 10, 'side': 'left'}
PACK_MARCO_ENT_BOOL: dict = {'anchor': 'w', 'expand': False, 'padx': 5, 'pady': 10, 'side': 'right'}
PACK_MARCO_MODULO: dict = {'anchor': 'n', 'expand': False, 'fill': 'x', 'padx': 2, 'pady': 2, 'side': 'top'}
fuente_boton = None
fuente_boton_salir = None
fuente_entrada = None
fuente_etiqueta = None
fuente_principal = None
fuente_titulo = None

Módulo comunes.idioma

class comunes.idioma.Idioma[fuente]

Bases: object

Clase que genera el diccionario que permite alternar el idioma entre inglés y español.

tex: dict = {}
comunes.idioma.alternar(raiz, reseteador)[fuente]

Administra el cambio de idioma mediante la actualización del diccionario de texto y la posterior reinicialización de la aplicación.

Parámetros:
  • raiz (Tk) – Instancia de la ventana principal.

  • reseteador (Reseteador) – Instancia que permite el reinicio de la aplicación.

Devuelve:

None