Actually these days I’ve been learning the Tkinter module on Python quite hard because I found it quite interesting. It served as a tool to make my teenage dreams come true since I would like to make something visually enjoyable for a long time.
To be honest, the learning process of Tkinter is pretty complex due to its huge volume of pre-requisite knowledge of Tk programming “protocol”. I just touched on it for 3 days but I want to create some programs in order to preserve the confidence and interests to continue learning. So, I want to share a sad but true story using Tkinter module. Here’s the code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from Tkinter import * root = Tk() b = Label(root, text = 'Why doesn\'t I have a girlfriend?', font = 'Arial 45') b.pack() def abc(): b.destroy() d.destroy() c = Label(root, text = 'Because I am ugly and poor!', font = 'Arial 45') c.pack() d = Button(root,text = "Click to see the reason",fg = 'red',command = abc) d.pack() root.minsize(600,600) root.mainloop() |
Please don’t laugh at me, because I want to keep writing….(T_T)
Hi, just wanted to tell you, I enjoyed this post. It was inspiring.Keep on posting!
This actually answered my downside, thanks right here on this post. I will likely be coming again to your weblog for extra soon.
Thanks a lot for sharing!
I experience looked at great number of blog together with gone through many websites,your job is undoubtedly magnificent.Hats off in your commitment . and candor.Do retain all of us well informed in future too.
This is my first time visit at here and i am really happy to read all at
alone place.
Say, you got a nice blog.Really looking forward to read more. Awesome.