EvilZone

Programming and Scripting => Scripting Languages => : fox12345 September 16, 2013, 04:31:46 PM

: How to building GUI based applications in Python?
: fox12345 September 16, 2013, 04:31:46 PM
Hi dear friends,
I want to Setting up a Python GUI environment. But I can not do it. I installed  Python 3.3.2 to my windows 8(x64) yes it is working well. as well as i want to build GUI application with python. So how to do it?



now i am really tired with Google.
I'm not a very good English writer :
please help me.....


What I'm looking for :- step by step guide to install python GUI tool kit.....
: Re: How to building GUI based applications in Python?
: Kulverstukas September 16, 2013, 04:49:54 PM
To build GUI applications, you need to learn Python + the GUI framework you will use. There are numerous of choices, the whole list is here: https://wiki.python.org/moin/GuiProgramming
I'd suggest Qt for pretty stuff or Tkinter for quick and ugly stuff.

Also I'd recommend learning English first. I expect you to understand what I just said and search yourself. Because if you did search and really didn't find anything, then you did a really shitty job at it.

Try this link btw: http://bit.ly/1aNGajA
: Re: How to building GUI based applications in Python?
: Ragehottie September 17, 2013, 03:57:16 AM
I'd go with tkinter for just starting. Its really easy to build and you can make it look eeeeehhhhhh so its not that bad. Just make sure to use the grid() and not pack it. packing is shit and hard to get to look nice
: Re: How to building GUI based applications in Python?
: techb September 17, 2013, 04:33:21 AM
If you want drag and drop like VisualBasic and the like, there is PythonCard (http://pythoncard.sourceforge.net/).

You will still need to know how to code to work with it though.
: Re: How to building GUI based applications in Python?
: geXXos September 17, 2013, 12:59:57 PM
As Kulverstukas said is better to learn first how Python works, and then make the step to GUI development, especially if you going to play with wxpython, i'm not en expert when it comes to Python or even GUI dev, but i don't recommend tkinter.


I my self work with Python 2.7 and the last month i play with PyQt4, there is the Qt-Designer in which you make a graphical user interface (GUI) from Qt components, in a what-you-see-is-what-you-get (WYSIWYG) manner.


With Qt-Designer you save your mygui.ui (the output is an XML file)  you convert it to python and then you load it to your python script.


This book is very good:
http://evilzone.org/ebooks/rapid-gui-development-with-qt-and-python/msg63787/#msg63787 (http://evilzone.org/ebooks/rapid-gui-development-with-qt-and-python/msg63787/#msg63787)


You can download PyQt from here:
http://www.riverbankcomputing.co.uk/news (http://www.riverbankcomputing.co.uk/news) (with python 3x you will need PyQt5)


And the Qt-Designer from here:
http://qt-project.org/downloads (http://qt-project.org/downloads) (with python 3x you will need Des-Qt 5x)


Check these links too:
http://zetcode.com/tutorials/pyqt4/ (http://zetcode.com/tutorials/pyqt4/)
http://popdevelop.com/2010/04/setting-up-ide-and-creating-a-cross-platform-qt-python-gui-application/ (http://popdevelop.com/2010/04/setting-up-ide-and-creating-a-cross-platform-qt-python-gui-application/)
http://www.cs.usfca.edu/~afedosov/qttut/ (http://www.cs.usfca.edu/~afedosov/qttut/)


I don't know if this is a safe advice for you but, if you just installed python 3x in your windows, then uninstall it and use python 2.7.5, you will have better time, and in the long.. future you make your move to 3x.


                                 
: Re: How to building GUI based applications in Python?
: fox12345 September 23, 2013, 11:08:50 AM
Thank you for all replies, they're all really perfect and I appreciate your time you have put into it. :-*
: Re: How to building GUI based applications in Python?
: harvey September 28, 2013, 11:53:54 AM
TKinter is what you should start off with for building GUI's, then move on to WX or something more advanced.