Skip to content
Sign upLog in
← Back to Community

Tkinter vs Python

Profile icon
electricboy32

If I want to use tkinter, do I have to select that as the language at the start or can I use python as a language and import tkinter. And if I do have to use tkinter as a language at the start, can I just program in python for everything else with the addition of tkinter?

Answered by RYANTADIPARTHI [earned 5 cycles]
View Answer
Voters
Profile icon
HamnaKabir
Profile icon
electricboy32
Comments
hotnewtop
Profile icon
RYANTADIPARTHI

You can do either. You can either import it, or make a tkinter repl. I would suggest going with making a tkinter repl, instead of importing it though.

Profile icon
electricboy32

@RYANTADIPARTHI
Okay I assume if I select the language as tkinter I just program in python as normal?

Profile icon
RYANTADIPARTHI

@electricboy32
well, it is python, but tkinter has some different concepts, like adding buttons, and all.

Profile icon
electricboy32

@RYANTADIPARTHI
I was going to click the tick anyway, and I know what tkinter is I was just checking that on repl.it it was the same, which thinking about it now was a pretty dumb question. Thanks for the help :)

Profile icon
RYANTADIPARTHI
Profile icon
Coder100

tkinter is just python with a few displays setup so you can actually get things to output on to the screen.

Because of this, you could literally code python in tkinter, but it would be a waste because of the extra commands used to setup an x11 display.