Advertisement
a5768549

python_tk001

Jan 2nd, 2020
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. import tkinter as tk
  2. from tkinter import ttk
  3.  
  4.  
  5. def event_handler():
  6.     pass
  7.  
  8. root=tk.Tk()
  9. root.title("ttk GUI")
  10. root.geometry("400x300")
  11.  
  12.  
  13.  
  14. button1 = ttk.Button(root, text="食譜").place(relx=0.4,rely=0.5)
  15. ttk.Button(root, text="掃食譜").place(relx=0.4,rely=0.4)
  16. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement