-1

how to add scroll to frame 2?

I struggle with it and it fails, proszę o pomoc!

please help

global app
global frame2
okno = Tk()
okno.geometry("1000x1000")

# app.columnconfigure(0, weight=1)
# app.columnconfigure(1, weight=3)

panel = ttk.PanedWindow(okno, orient=HORIZONTAL)
panel.pack(fill=BOTH, expand=True)

ramka1 = ttk.Frame(panel, width=100, height=200, relief=SUNKEN)
global ramka2
ramka2 = ttk.Frame(panel, width=200, height=200, relief=SUNKEN)

panel.add(ramka1, weight=1)
panel.add(ramka2, weight=3)

ttk.Label(ramka1, text="First Name").grid(column=0, row=0)
ttk.Button(ramka1, text="Pobierz dane", command=pobierzDane).grid(column=0, row=1)

okno.mainloop()

0 Answers0