GUI using python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

GUI using python

I wanted to make a gui using python. Can someone please help me how to do that?

6th Jun 2017, 5:16 PM
Shudhanshu Kumar
Shudhanshu Kumar - avatar
11 Answers
+ 2
python is nice .. it provides an integrated gui module it is called tkinter you import .. tkinter in python 3.x Tkinter in python 2.x else see wxpython, kivy etc best gui book i found Python Gui Programming Cookbook also Python Gui Application Development Blueprints .. both by packt publishing see my blog i publish short tkinter codes aimed at beginners hope you enjoy it ! blog : http://abdurrahmaanjanhangeer.wordpress.com
6th Jun 2017, 6:12 PM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 9
Keep an eye here, "the Python GUI cookbook" was available for free two days ago: https://www.sololearn.com/discuss/444755/?ref=app
6th Jun 2017, 8:09 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 5
@Kuba. I was fortunate enough to see that post and now I have a copy in my PacktPub cart. Yaay!
7th Jun 2017, 2:34 AM
@bayoishola20
+ 4
like a button button1 = Button(root,text="hi",command=func) button1.pack()
7th Jun 2017, 6:40 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 2
@Farhad Shahidi if you need specific example tell !
7th Jun 2017, 6:45 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 1
The easiest way is to use the tkinter module included the standard library. Just import 'tkinter'. Here is a link to a tutorial: http://usingpython.com/using-tkinter/ With tkinter you can created simple gui application.
6th Jun 2017, 5:51 PM
Amarie
+ 1
@kuba exactly the same one
6th Jun 2017, 8:10 PM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 1
Thanks for the answer but will the UI be same as we have one for java which has radio buttons and text box, etc? Or i have to define everytime i use one?
7th Jun 2017, 2:24 AM
Shudhanshu Kumar
Shudhanshu Kumar - avatar
+ 1
@kumar you have to define it
7th Jun 2017, 6:34 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 1
Tnx for your answering🌺🌼🌹
7th Jun 2017, 6:40 AM
Farhad Shahidi
Farhad Shahidi - avatar
+ 1
If your question is to make an exe file from a .py file then i have the solution. First of all you have to install cx freezer But i cant explain all of the process in an answer so go and watch this video https://www.youtube.com/watch?v=RrpvNvklmFA
26th Jan 2019, 11:58 AM
Ahnaf
Ahnaf - avatar