1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] How to set width/height of widgets within a Paned Window widget in Tkinter after...

Discussão em 'Python' iniciado por Stack, Setembro 12, 2024.

  1. Stack

    Stack Membro Participativo

    I'm trying to create a save/restore functionality in my Tkinter GUI, but I'm having trouble restoring the width/height of Widgets within a Paned Window. I've tried .place() and .config, but the resizable window around each of the widgets disappears and I can no longer resize each widget.

    Example code:

    from tkinter import *
    from tkinter.ttk import *

    root = Tk()
    pw = PanedWindow(root)

    text1 = Text(pw)
    pw.add(text1)

    text2 = Text(pw)
    pw.add(text2)

    entry1 = Entry(pw)
    pw.add(entry1)

    Continue reading...

Compartilhe esta Página