Hi.i am new to the community. can anyone help me with this code?

from tkinter import *
from tkinter import messagebox
from tkinter import ttk

root= Tk()
root.geometry(“%dx%d+%d+%d” % (1000, 400, 200, 200))
root.title(“planner”)
button1=Button(root,text=“Button1”)
button2=Button(root,text=“Button2”)
button3=Button(root,text=“Button3”)

button1.pack(side=TOP,fill=BOTH)
button2.pack(side=LEFT)
button3.pack(side=RIGHT)

Hey @neg77, welcome!
As far as I can tell this is Python to create some graphic user interface window. Other than that, I not sure what do you need help with?
Can you explain what do you not understand or/and what’s not working? Any good and pertinent information “will help us to help you”.
Waiting for your response :wink:

1 Like

hi, i figured it out. it just needed the line " root.mainloop()"
at the end to display the result. :sweat_smile:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.