img app
I’m trying to make all the options visible, however even increasing the dimensions the screen doesn’t enlarge and doesn’t solve the problem
class App(tk.Tk):
def __init__(self, gerenciador):
super().__init__()
self.gerenciador = gerenciador
self.title("Gerenciador de Apostas")
self.geometry("1000x700") # Ajustei o tamanho da janela para ter mais espaço
# Canvas e Scrollbar
self.canvas = tk.Canvas(self)
self.canvas.pack(side=tk.LEFT, fill=tk.BOTH, expand=True)
self.scrollbar = ttk.Scrollbar(self, orient=tk.VERTICAL, command=self.canvas.yview)
self.scrollbar.pack(side=tk.RIGHT, fill=tk.Y)
self.canvas.configure(yscrollcommand=self.scrollbar.set)
self.canvas.bind('<Configure>', self.on_canvas_configure)
self.frame_principal = ttk.Frame(self.canvas)
self.canvas.create_window((0, 0), window=self.frame_principal, anchor=tk.NW)
At first it wasn’t possible to scroll down the page so I added the scroll, but when the ‘date’ filter appears the dates for you to select instead of writing, to make it easier for the user to be able to insert the date, but the calendar remains hidden because the screen is limited, could anyone help me solve this problem?
img hidden calendar error
I tried to make changes by increasing self.geometry("1000x700")
but it didn’t work.
I also tried the following configuration
# Configuração do layout responsivo
self.frame_principal.grid_rowconfigure(0, weight=1)
self.frame_principal.grid_rowconfigure(1, weight=3) self.frame_principal.grid_rowconfigure(2, weight=2) self.frame_principal.grid_columnconfigure(0, weight=1)
jonh Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.