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

How does one deploy or share python apps built with the tkinter gui framework?

I have been interested in the gui frameworks for python, one of which is tkinter. However, as a developer who develops applications, I think about the target audience for my application (either web application or desktop). One cannot ask the end user to first install python on their machine and then to run a command at the command line. Since python is an interpreted language, one needs to find a way to package the application and have it just run on the users computer or in their browser.

What are some ways to do this? I know IDLE is based on a gui framework, which is great for developers but not so good for end-users, non-developers, non-programmers. That has stood as a barrier to me in using Tkinter. Where would I use it? and how? What are the most common ways to do this for distributing a Tkinter-based (or other framework-based) gui app?
Can it be used in building web apps, e.g. widgets? In this case, the widget code would run on the server or one is faced with the same issue unless there is a way to convert the python code to JavaScript which is supported by browsers - gee, I wonder if that is possible?... to compile to JavaScript?

Thanks in advance for any help, Bruce

1 Answer

Does Pyinstaller help you?