Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Tk_mono_padding.py
- import Tkinter as tk
- class MyApp():
- def __init__(self):
- self.root = tk.Tk()
- l1 = tk.Label(self.root, text="Hello")
- l2 = tk.Label(self.root, text="World")
- l1.grid(row=0, column=0, padx=(200, 10))
- l2.grid(row=1, column=0, padx=(10, 200))
- app = MyApp()
- app.root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement