def carregar_eventos(self) -> None: if not self.ativo: return if 'command' in self.defs.mcnf: self.configure(command=self.defs.mcnf['command']) Elemento.carregar_eventos(self)
def __init__(self) -> None: Elemento.__init__(self) self.defs.pack['expand'] = True self.defs.canvas = {} self.defs.viewport = {} self.defs.scrollbar = {}
def __init__(self) -> None: Elemento.__init__(self) self.defs.cnf['title'] = 'JANELA SEM TITULO' self.defs.cnf['geometry'] = '400x400' self.defs.cnf['resizable'] = False self.subelemento.main = MContainer() self.subelemento.main.defs.cnf['bd'] = 10 self.subelemento.main.defs.cnf['padx'] = 8 self.ativa = False
def __init__(self) -> None: Elemento.__init__(self) self.defs.cnf['bd'] = 0 self.defs.cnf['width'] = 20 self.defs.cnf['bg'] = 'white' self.defs.cnf['fg'] = 'black' self.defs.cnf['justify'] = 'left' self.defs.cnf['font'] = ('times new roman', 14, 'italic') self.defs.mcnf['focus'] = False self.defs.mcnf['placeholder'] = 'Digite algo...'
def __init__(self) -> None: Elemento.__init__(self) self.defs.cnf['text'] = 'BOTAO' self.defs.cnf['width'] = 10 self.defs.cnf['height'] = 1 self.defs.cnf['bd'] = 2 self.defs.cnf['pady'] = 6 self.defs.cnf['padx'] = 6 self.defs.cnf['bg'] = 'grey' self.defs.cnf['fg'] = 'white' self.defs.cnf['relief'] = 'solid' self.defs.cnf['font'] = ('times new roman', 14, 'bold') self.ativo = True
def __init__(self) -> None: Elemento.__init__(self) self.defs.cnf['text'] = 'MENSAGEM' self.defs.cnf['font'] = ('times new roman', 14, 'italic')
def __init__(self) -> None: Elemento.__init__(self) self.defs.cnf['text'] = 'LABEL' self.defs.cnf['font'] = ('times new roman', 14, 'bold')
def __init__(self) -> None: Elemento.__init__(self) self.defs.cnf['bd'] = 2 self.ativo = False