es.davy.ai

Preguntas y respuestas de programación confiables

¿Tienes una pregunta?

Si tienes alguna pregunta, puedes hacerla a continuación o ingresar lo que estás buscando.

Tag: CUSTOMTKINTER

Cómo disminuir el tamaño de una etiqueta en tkinter python.

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()

Cómo permitir únicamente que el marco superior se estire verticalmente.

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

Cómo continuar un comando en Tkinter

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