Skip to content
Sign upLog in
← Back to Community

How to make graphical work, such as a calculator? - python 3 (not turtle)

Profile icon
dillonjoshua68

Just the basics, and pls share any important info

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Profile icon
dillonjoshua68
Comments
hotnewtop
Profile icon
Coder100

Hello. What do you mean graphical? You can use turtle, pygame, or tkinter. Won't work on a python repl because those are terminal-only

Profile icon
dillonjoshua68

For example... when we use html...css...js we can make a calculator that shows buttons, etc... like the apps... it’s a GUI... but I don’t know how to do that in python.... (idk html too)

@Coder100

Profile icon
Coder100

hi, read my answer. Use pygame or tynker.

@dillonjoshua68

Profile icon
Coder100

pygame
tkinter


@dillonjoshua68

Profile icon
conspicous

You could use PyQt5 as it allows you full control as to where you place an object:

@Coder100
you can't overlap in tkinter.

you also are able to customise component styles using css.
it will be complicated but it is worth it as it does not use as much cpu process AND is MUCH faster at redrawing the window.

Profile icon
Coder100

yeah, true.

@Lethdev2019

Profile icon
conspicous

it also works in the tkinter option too. seriously

@Coder100

Profile icon
Coder100

yes!

@Lethdev2019

Profile icon
conspicous

@Coder100
This means on repl.it, if you click tkinter then install pyqt it still allows GFX to work normally.

Profile icon
VulcanWM

Use ascii art.

Profile icon
dillonjoshua68

Thanks

@VulcanWM

Profile icon
VulcanWM

np

@dillonjoshua68

Profile icon
dillonjoshua68

@Lethdev2019
come onl