Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Tk_offset_padding.py
- from tkinter import *
- root = Tk()
- root.title('Offset Padding')
- root.geometry("600x300")
- root.config(bg="blue")
- # Create a label
- my_label = Label(root, text=" Label A ",
- bg="white",
- fg="black",
- font=("Helvtica", 40))
- my_label.grid(row=0, column=0,
- pady=50,
- padx=(30,10))
- # Create a second label
- my_label2 = Label(root, text=" Label B ",
- bg="white",
- fg="black",
- font=("Helvtica", 40))
- my_label2.grid(row=0, column=1)
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement