heydar - Hightechrobo Bin
  PYTHON   43

heydar

Guest on 9th May 2022 04:59:20 AM

  1. import tkinter as tk
  2. def printhello():
  3.     print('hello')
  4. m=tk.Tk()
  5. m.title('hello')
  6.  
  7. label = tk.Label(text="Write something")
  8. entry = tk.Entry()
  9.  
  10. text= tk.Text()
  11. def hell():
  12.     ff = entry.get()
  13.     text.delete(0, tk.END)
  14.     text.insert(0 , ff)
  15.  
  16.  
  17. button = tk.Button(
  18.     text="Click me!",
  19.     width=10,
  20.     height=1,
  21.     bg="blue",
  22.     fg="yellow",
  23.     command = hell
  24. )
  25.  
  26.  
  27.  
  28.  
  29.  
  30. label.pack()
  31. entry.pack()
  32. button.pack()
  33. text.pack()
  34.  
  35.  
  36.  
  37. m.mainloop()import tkinter as tk
  38. def printhello():
  39.     print('hello')
  40. m=tk.Tk()
  41. m.title('hello')
  42.  
  43. label = tk.Label(text="Write something")
  44. entry = tk.Entry()
  45.  
  46. text= tk.Text()
  47. def hell():
  48.     ff = entry.get()
  49.     text.delete(0, tk.END)
  50.     text.insert(0 , ff)
  51.  
  52.  
  53. button = tk.Button(
  54.     text="Click me!",
  55.     width=10,
  56.     height=1,
  57.     bg="blue",
  58.     fg="yellow",
  59.     command = hell
  60. )
  61.  
  62.  
  63.  
  64.  
  65.  
  66. label.pack()
  67. entry.pack()
  68. button.pack()
  69. text.pack()
  70.  
  71.  
  72.  
  73. m.mainloop()


Add Comment

* Required information
1000
Drag & drop images (max 3)
Type the word for the number 9.
Captcha Image
Powered by Commentics

Comments

No comments yet. Be the first!

Raw Paste


Login or Register to edit or fork this paste. It's free.