Skip to main content

Thinking with tikinter

tikinter is not a word from one of foreign languages I am learning. It is a graphics module in python. Which I am trying to experiment with.

Few months back I used to look at all scripting languages with disdain. "They do not even define their variables". And they are for web developers.

But apparently python is different. Every one is talking about it. Or in it. So I joined a coursera course in introductory python and successfully completed it. Because it was free course?

Does that mean I will post its certificate in Facebook. No.  a) I get a certificate only by paying 4000 rupees. We Indians do not believe in paying for internet knowledge. Paying for wifi connection is more than enough. b) I have deactivated my facebook account and will be deleting it. Again.

I also installed a solo learn app for python in my phone. It is quite good. Again I do not expect them to return the favor. :)

When I was searching for python learning videos in youtube - thanks all to Jio, I came across the word GUI development in python. I stood on my toes. So what is this GUI using python. The video told me that there is this in built module called tkinter - I am still not sure t is silent or k is silent or both are. Tkinter lets you create a window, add a label, a button etc using python. GREAT.

I remembered my first encounter with Qt. Those days I was teaching C and C++. If you spend all your time with C and C++, GUI sounds like a beautiful dessert to you. Because it lets you create GUI in C++, I started learning Qt in my spare time. And some how it paid off.

Now I am re-re-learning Qt. In my last session, I was able to extract my keyboard input and show it in  a label. But no success with Kannada letters.

With my new obsession with coursera (free) courses and tikinter, am I saying goodbye to French from duolingo. May be. It is not that I will be going on a Paris trip any time soon.

To know how simple it is to code tkinter - type the following in your command prompt
python
import tkinter
wi = tkinter.Tk()
wi.title("Hello World")
wi.mainloop()

And your first python window is ready.


Comments

Popular posts from this blog

Someshwara shataka

ಚರಿಪಾರಣ್ಯದ ಪಕ್ಷಿಗೊಂದು ತರು à²—ೊಡ್ಢಾಗಲ್ ಫಲಂ ಈವಿದಾ ಮರಗಳ್ ಪುಟ್ಟವೆ ಪುಷ್ಪವೊಂದು ಬಳಲಲ್  à²­್ರಂಗಕ್ಕೆ ಪೂವಿಲ್ಲವೆ ನಿರತಂ ಸತ್ಕವಿಗೋರ್ವ ಗರ್ವಿದಂ ನೃಪ ತಾಂ ಲೋಭಿಯಾಗಲ್ ನಿಜಂ ಧರೆಯೊಳ್ ದಾತರು ಪುಟ್ಟರೆ ಹರ ಹರಾ ಶ್ರೀ ಚೆನ್ನ ಸೋಮೇಶ್ವರ Will a bird in the wild go hungry just because one fruit tree dries up? If one flower withers, will not the bee get any flowers? If one haughty king is miserly, will there be no patrons (of poetry) on this earth? ಕೆಲವಂ ಬಲ್ಲವರಿಂದ ಕಲ್ತು ಕೆಲವಂ ಶಾಸ್ತ್ರಂಗಳೋದುತಂ ಕೆಲವಂ ಮಾಳ್ಪವರಿಂದ ಕಂಡು ಕೆಲವಂ ಸುಜ್ಙಾನದಿಂ  ನೋಡುತಂ ಕೆಲವಂ ಸಜ್ಜನಸಂಗದಿಂದಲರಿಯಲ್ ಸರ್ವಜ್ಞನಪ್ಪಂ ನರಂ ಪಲವಂ ಪಳ್ಳ ಸಮುದ್ರವೈ ಹಾರ ಹರಾ ಶ್ರೀ ಚೆನ್ನ ಸೋಮೇಶ್ವರ Learning from wise men, reading from good books, observing others  work and learning from good company, these are the ways a man becomes omni-scient (sarvajna - one who knows everything). Just like many streams join together to make an ocean. P.S. 1) If you find some of my wordings in this shataka is wrong, please let me know. It is a 40 year old memory. 2) There are also many tripadis(poem

AA

This must really go to facebook page. But since I am currently not in facebook, I am putting it here. If you feel any of your close ones or your friends and relatives are addicts or on the way of being addicts, introduce them to Alcoholic anonymous. They have meetings all over the Bangalore and in other towns in India also.  I have taken this list from AA India site . The site also contains lot of information about alcoholics including a questionnaire to find out if a a person is an alcoholic or not.   BELGAUM ADDRESSES TIMINGS New Life Group.    St, Anthony Kannada High School,    Opp. Fish Market Khanapur Road, Camp Belgaum-590006 Anand – 099026 87947 Sat 6.00 p.m. Back Top BENGALURU ADDRESSES TIMINGS

Bharatha - 2. UrdhvaRoma

I wanted to write about Karna as my part 2 of Bharatha because he is the real tragic hero of MahaBharatha. But net is filled with writings about him. So let me write about little known son of Arjuna called Urdhvaroma. And I don't want to write as twisted tale but as I have heard it from my Yankatte (atte - aunt). Yankatte was my mother's aunt and she was widowed in childhood. She would spend some time in my granny's house and some time in her husband's house. She would tell us all beautiful stories. UrdhvaRoma was a son of Arjuna (I think. Or may be Bhima's son. I don't remember clearly. ) He was living in the forest. One day when he was practicing archery, Arjuna and Krishna were passing by. Krishna indicated Arjuna to hide and watch. This boy shot an arrow to a large tree. And all the leaves of the tree fell down except for 5 and a half leaves. Krishna and Arjuna came forward and asked him what was all this about. The boy told " After few years there wi