Is GUI Programming in Python easier and better to learn than the same using a toolkit like GTK for C++?
-
I am a Python newb who has done most of the basic python Command line stuff and has relative experience in creating GUI Applications in tkinter. Now as I have been doing basic Tkinter stuff so far and due to lack of a proper GUI tutorial , I purchased 'Programming Python By Mark Luthz ' . It has a very nicely done tutorial regarding Tkinter . Now I have been learning C++ also but I am better with Python .So my question is , Is it better and easier to Code GUIs in Python than C++ ? Also will it cause any problems to me when I mature from basic practising to creating applications ? I have been distributing .exes of myTkinter Apps using py2exe but I have somewhere heard that py2exe has some binary problems in compiling .exes in GUIS on Python 3.x . So will learning C++ be better for me or shall I stick with Python . Thanks in advance
-
Answer:
Doing any kind of programming in python is easier to learn in comparison with C/C++. The top reason for preferring C++ for GUI programming is speed( I know it's not that important for the GUI itself, but it tends to be speedier because C++ programs don't suffer from the overhead that runtimes, byte code JIT-compiling and similar technologies add to the program.) Python is faster (in term of programmer productivity and development cycle) and easier, C++ can give that extra bit of power when you have to get close to the hardware or be extremely careful about every byte or machine cycle you spend. In your situation, I would recommend you to stick with Python. There are several toolkits available for GUI programming in Python; several are good, none are perfect, and they are not equivalent; there are situations where one or more otherwise excellent toolkits will not be appropriate.The four most popular Python GUI toolkits: http://en.wikipedia.org/wiki/Tkinter, http://en.wikipedia.org/wiki/WxPython, http://en.wikipedia.org/wiki/PyGTK, and http://en.wikipedia.org/wiki/PyQt I personally prefer PyGTK for GUI development.
Atit Anand at Quora Visit the source
Other answers
Yes I get it . I use Tkinter as my Toolkit for python and it is great . But the main thing is , will I have any problems in the future with Python provided I go with it ? C++ is too weirdo complicato for me (I hate those header systems and namespaces and all ...Why can't everyone use modules?) And there is already the issue of creating .exes .C++ does it natively whereas Python needs external scripts to do so..
Pradipta Bora
Related Q & A:
- How To Connect Two Different Network Segments Using A Switch And A Router?Best solution by Super User
- How to color a part of the text c#?Best solution by Stack Overflow
- In Visual Studio 2012 or 2013, how can I register a DLL file on Windows 7 64-bit computer using a Custom Action command?Best solution by Stack Overflow
- How do I upload a picture instead of using a generic avatar?Best solution by answers.yahoo.com
- Does using a VoIP software (Skype?) on a cell phone work well?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.