Jovian
⭐️
Sign In
In [1]:
import tkinter as tk
In [35]:
root=tk.Tk()
root.title("myfirstApp")
root.geometry("300x300")
frame=tk.Frame(root,width=300,height=300)
frame.pack(side="left")
label=tk.Label(frame,text="UserName")
label.pack()
label1=tk.Label(frame,text="Password")
label1.pack()
label2=tk.Label(frame,text="forget password")
label2.pack()
root.mainloop()
In [41]:
root=tk.Tk()
root.title("myfirstApp")
root.geometry("300x300")
frame=tk.Frame(root,width=300,height=300)
frame.grid(row=0,column=0)
label=tk.Label(frame,text="UserName")
label.grid(row=0,column=0)
label1=tk.Label(frame,text="passwor")
label1.grid(row=1,column=1)
root.mainloop()
In [71]:
root=tk.Tk()
root.title("myfirstApp")
root.geometry("300x300")
frame=tk.Frame(root,bg="lightblue",width=300,height=300)
frame.place(relx=0.1,rely=0.1,relheight=0.5,relwidth=0.5)
label=tk.Label(frame,text="UserName")
label.place(relx=0.1,rely=0.1)
entry=tk.Entry(frame)
entry.place(relx=0.6,rely=0.1,relwidth=0.3)
button=tk.Button(frame,text="click")
button.place(relx=0.3,rely=0.6,relwidth=0.5)
# label1=tk.Label(frame,text="passwor")
# label1.grid(row=1,column=1)
root.mainloop()
In [72]:
import jovian

In [ ]:
jovian.commit()
[jovian] Saving notebook..
In [ ]: