Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Laurence Bowe
Laurence Bowe
6,222 Points

Is python suitable for GUI/Desktop applications?

Hi, So I saw the python course looked a bit into it saw it was easy to learn which was a big yes for me but it seemed that this language is not suitable for these kind of things though, is this true? If it is please suggest a language so I can learn how to make apps for microsoft os computers.

P.S saw this website that I wondered if it would help me make it manageable - kivy.com

ALL HELP MUCH APPRECIATED IN ADVANCE!!!! :)

4 Answers

Laurence,

The most popular package for creating GUI/Desktop apps with Python is TkInter. You can read about it here:

https://wiki.python.org/moin/TkInter

For general info, you might also find this useful:

http://docs.python-guide.org/en/latest/scenarios/gui/

Finally, there are these:

Hope that helps!

Laurence Bowe
Laurence Bowe
6,222 Points

WOW awesome documentation THE EFFORT YOU PUT INTO THIS ANSWER IS CRAZY AWESOME SO THANK YOU SO M...U....C....H!!!!!!!!!!!! :) (:

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

Python is used for GUI apps all the time. PyGame and Ren'Py make it easy to make desktop games in Python. Tkinter is built into Python (not in our Workspaces, sadly) to build desktop apps. And, as you mentioned, Kivy can also be used to build desktop and mobile apps in it.

So, yeah, Python is definitely suitable for GUI applications. I hope we'll be able to do a course on, at least, the basics of it, soon.

Laurence Bowe
Laurence Bowe
6,222 Points

THANK YOU SOOOOO MUCH HELPED A TON STARTED YOUR COURSE....ITS AWESOME YOU SHOULD BE REALLY PROUD OF IT HOPE TO SEE MORE OF YOU SOON.....THANKS AGAIN!!! :) (:

Glad to help, Laurence. Here's a Python trick you might find useful:

s = "FORUM COMMENTS"
print(s.lower())

:]

Daniel Hartin
Daniel Hartin
18,106 Points

Python is a great language to start learning with as you don't have to delve straight into Object orientated programming if you want to get comfortable with the basics although rightly so the UI functionality of python is a little tricky.

I used python to get comfortable with the basics like variables, loops, if statements, methods and classes (the last 2 are optional in python) then moved onto JAVA which is more suitable for what you are after but can be a little trickier when starting out as everything must be defined in classes and methods from the off.

Python doubles up as a fantastic calculator though as you can write simple statements and run them over and over without the need to compile a program and obviously has a greater functionality over the standard desktop calculator.

Laurence Bowe
Laurence Bowe
6,222 Points

THANKS FOR ALL THE INFO!!! HELPED ME A-L-O-T!!! :) (: