11 Respostas
+ 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
+ 9
Keep an eye here, "the Python GUI cookbook" was available for free two days ago:
https://www.sololearn.com/discuss/444755/?ref=app
+ 5
@Kuba. I was fortunate enough to see that post and now I have a copy in my PacktPub cart. Yaay!
+ 4
like a button
button1 = Button(root,text="hi",command=func)
button1.pack()
+ 2
@Farhad Shahidi if you need specific example tell !
+ 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.
+ 1
@kuba exactly the same one
+ 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?
+ 1
@kumar you have to define it
+ 1
Tnx for your answeringđșđŒđč
+ 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