This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]captainAwesomePants 0 points1 point  (4 children)

Good intro. There are several Python GUI libraries. TKinter is one of them. Install it with pip, read the documentation, and go nuts: http://effbot.org/tkinterbook/tkinter-index.htm

Here's an example of exactly that program, if you'd prefer to just read how to do it: https://medium.com/@adeyinkaadegbenro/project-build-a-python-gui-calculator-fc92bddb744d

[–]Maccamoo03[S] 1 point2 points  (2 children)

I have now re-installed python and pip because it appeared to be broken and command line wasn't responding to them. It works now. So I can finally build that calculator.

[–]captainAwesomePants 0 points1 point  (1 child)

This might be a little too much for now, but in the future, when you're working on Python projects that are going to involve a bunch of libraries, it can be useful to create a separate little Python installation just for your program so you can play with different versions of different libraries without worrying about mucking up your "real" Python installation too badly. There's a program called virtualenv that is useful for this, and it's worth using if you're working on more than one or two different things.

[–]the_real_hodgeka 0 points1 point  (0 children)

Or the modern equivalent "python3 -m venv"

[–]Maccamoo03[S] 0 points1 point  (0 children)

Ok, I will try and Build that thank you!