+ 5
Tkinter
Does anyone knows how to write python programmes with tkinter? How?
7 Réponses
+ 5
Use any IDE that is not Sololearn Code Playground. Like IDLE or PyCharm
+ 4
Python offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, tkinter is most commonly used method. You can use any IDE like pycharm to write it.
+ 4
There are many books and tutorials, this one gives you the very basics
https://www.geeksforgeeks.org/JUMP_LINK__&&__python__&&__JUMP_LINK-gui-tkinter/
0
From tkinter import *
And then the code
Mainloop()
0
This gives u a basic window with a background and a title
#imports all of the tk module
From tkinter import *
#makes a window, make sure to make the T capital
Your_var = Tk()
#creates the window
Your_var.mainloop()
#changes the title
Your_var.title=(“your title”)
#adds a background color
Your_var.config(background=“yourcolor”)
#Sololearn doesnt support tk, run it in replit.com