Advertisement
here2share

# Tk_mono_padding.py

May 23rd, 2018
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. # Tk_mono_padding.py
  2.  
  3. import Tkinter as tk
  4.  
  5. class MyApp():
  6.     def __init__(self):
  7.         self.root = tk.Tk()
  8.         l1 = tk.Label(self.root, text="Hello")
  9.         l2 = tk.Label(self.root, text="World")
  10.         l1.grid(row=0, column=0, padx=(200, 10))
  11.         l2.grid(row=1, column=0, padx=(10, 200))
  12.  
  13. app = MyApp()
  14. app.root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement