Tag: CUSTOMTKINTER
Tengo un widget tk.Text() y un botón. Cuando se hace clic en el botón, quiero cambiar el texto en el widget Text y luego realizar un trabajo prolongado. Aquí hay un fragmento de código de la función de comando del botón: price_text.delete(“1.0”, tk.END) price_text.insert(tk.END, ‘POR FAVOR ESPERA..’) result = self.the_lengthy_job() . . . Read more
Quiero disminuir el tamaño de una etiqueta en tkinter python. el código: from tkinter import * top = Tk() top.title(“…”) top.geometry(“200×200”) name = Label(top, text=”Escribe aquí: “).place(x=20, y=50) e = Entry(top).place(x=100, y=50) name1 = Label(top, text=”Escribe aquí: “).place(x=20, y=100) e1 = Entry(top).place(x=100, y=100) top.mainloop()
Intento adoptar https://stackoverflow.com/questions/60954478/tkinter-treeview-doesnt-resize-with-window, con muy pocas modificaciones. import tkinter as tk from tkinter import ttk import random class App(): def __init__(self): self.root = tk.Tk() self.frame = tk.Frame(self.root) self.frame.pack(expand=True, fill=tk.BOTH) self.tree = ttk.Treeview(self.frame, show=”headings”) self.tree.pack(expand=True, ) self.frameBT = tk.LabelFrame(self.root,text=’Buttons’) self.frameBT.pack(expand=True, fill=tk.X) self.button = ttk.Button(self.frameBT, text=”Fill”, command=self.fill) self.button.pack(side=tk.BOTTOM,expand=True) self.fill() self.root.mainloop() def fill(self): . . . Read more
Estoy haciendo una GUI para enviar correos electrónicos con archivos adjuntos utilizando Tkinter y libreria Win32. Hay momentos en los que los archivos adjuntos no se agregarán a la carpeta para algunos identificadores (IDs). Durante estas circunstancias, quiero capturar el error y saltar al siguiente ID para el cual pueda . . . Read more
Me gustaría desarrollar un programa en Python con tkinter en el que si el usuario no ingresa el nombre de usuario y / o la contraseña correctos más de 5 veces, el programa se bloquea y no se puede lanzar durante 24 horas. Pero no puedo encontrar cómo hacerlo. ¿Alguien . . . Read more