There’s only so far you can get with Python before you realise the command line is pretty, well, boring. And you hanker for something graphical, with colours and buttons and different fonts. What you need my friend is a Graphical User Interface(GUI)
There are a variety of GUIs available to Python. The one that comes as standard is a library called Tkinter. Other ones I have used in teh past are appjar and guizero but these involve separate installs. Tkinter is the underlying GUI that powers the popular Turtle module. However designing an interface in Tkinter can be baffling. How do you know where your buttons and labels will appear? What I was looking for was a simple way to create an interface using a drag n drop system, so I can plan it out by eye rather than some arbitrary layout chosen by Tkinter.
If you have ever programmed in Visual Basic you’ll know that in the development environment Visual Studio is a great tool for allowing you to drag and drop buttons and labels and textboxes around a window to your heart’s content. Could there be something similar for Python? The answer is, not quite.
It’s reports time again – specifically UCAS references time. And I need to write up to 140 words on each of my students.
I like using Excel for such things but was surprised there was no easy way of counting the words in each cell. I knew you could count characters using LEN() but not how to count the words…. till I found this post and this useful snippet:
I stumbled across this website that allows you to visualise line by line execution ina Python program. This may be useful for students who are unclear about how a function (or blocks of code) run within a program: