Design button and windows | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Design button and windows

how i can create button and windows with python

25th Jan 2017, 5:24 AM
ALAMOUDI, WAEL MAKKI S
ALAMOUDI, WAEL MAKKI S - avatar
10 Answers
+ 2
tkinter module is an option
25th Jan 2017, 6:12 AM
Kawaii
Kawaii - avatar
+ 2
yeah just do import tkinter
25th Jan 2017, 6:20 AM
Kawaii
Kawaii - avatar
+ 2
open a .py file and write import tkinter root = tkinter.Tk() root.mainloop() this will create an empty window
25th Jan 2017, 11:14 PM
Kawaii
Kawaii - avatar
+ 2
read this https://docs.python.org/3/library/tk.html there u can find different widgets to add to ur gui application
26th Jan 2017, 4:27 AM
Kawaii
Kawaii - avatar
+ 2
Explore this site https://wiki.python.org/moin/GuiProgramming . tkinter is installed by default with Python and for easy usage i suggest more advanced experience - PyQt/PySide. PyQt4 is mostly used but PyQt5 exist and beeing researched. With PyQt you can use Qt Designer to manually place widgets in your window and when is done transform into .py file. Use Google for more help
26th Jan 2017, 6:55 AM
guest013
guest013 - avatar
+ 1
ok is it option in like pycharm or visual studio
25th Jan 2017, 6:16 AM
ALAMOUDI, WAEL MAKKI S
ALAMOUDI, WAEL MAKKI S - avatar
+ 1
sorry but i can not find this option in visaul studio and pycharm
25th Jan 2017, 9:57 AM
ALAMOUDI, WAEL MAKKI S
ALAMOUDI, WAEL MAKKI S - avatar
+ 1
ok after do this i did see the toolbox is empty
25th Jan 2017, 10:40 AM
ALAMOUDI, WAEL MAKKI S
ALAMOUDI, WAEL MAKKI S - avatar
+ 1
ok good but where i can find toolbox for add the button and other ...
26th Jan 2017, 12:47 AM
ALAMOUDI, WAEL MAKKI S
ALAMOUDI, WAEL MAKKI S - avatar
0
It is not an option, it is module! Write at the top of your code import tkinter
25th Jan 2017, 10:14 AM
Leshark
Leshark - avatar