Friday, October 14, 2016

Using TK in Python on Windows



It works as you can see from the screenshot.  The window on the left, and the two other windows are the Python interactive shell and the Pythn editor.  What I found is that the original sample was Tk() and I get it to work with tkinter.Tk(), I specify the whole method designation.  There is something about setting a default class, but I am n ot looking into that, full method names are just fine.

How long to write the code?  Two minutes, looking though the call list and knowing in  general how windowing systems work.  Then I had to sort out the method calling convention, and make sure the import could always find libraries, that was two days.

See, its the set up and management of Python in MS Windeows, Microsoft does not like Python, they have a tremendous investment in Basic.

No comments: