Beginner needs help!

just installed pycharm on my Mac, created a project with a couple of files in it, how can i get any of those files to run as a desktop application? it might sound stupid but i am really new to all this!

Thanks

Farid

8 comments
Comment actions Permalink

Hi Farid. It sounds like you are asking how to write desktop Mac applications with Python? If so, there are a number of cross-platform and also, Mac native frameworks for Python. Let me know what you are trying to do and I can give some pointers.

 

Paul Everitt
PyCharm Developer Advocate

0
Comment actions Permalink

Thanks Paul, i am just writing a simple application to calculate a loan amount, i created the file but i can't run it as an application (with a desktop icon that i can just click on to run the application), i am completely new to programming but that's my understanding of running an application!

0
Comment actions Permalink

Is it ok to run it from within PyCharm, while you are editing?

0
Comment actions Permalink

is that the only way it works? what if i want to install my application on another computer? 

0
Comment actions Permalink

In that case, since you probably won't have PyCharm on the other computer, you need to arrange for the Python installed on the other computer to be registered to handle that file type (.py).

0
Comment actions Permalink

yes i have already done that, so do you just send the file .py to the other computer and open it from there? i still need some guidance on how to create a standalone app using python on pycharm, is there any source i can read about that? i need to create an app icon and do shortcuts etc

0
Comment actions Permalink

PyCharm won't be involved in the part about creating standalone applications, which is good news, because it means it is a general Python question and there will be lots of resources out there for that. You'll need to think first about whether all of your targets are Mac or whether it needs be cross-platform. You'll then need to decide if the application is text-only or needs a GUI.

If "standalone" means the package needs to bundle Python and all the dependencies, then just as a small warning, it is not a beginner topic in Python.

0
Comment actions Permalink

Right, you just made me realise that the program i am creating is actually in python! i thought pycharm is doing all the work and python is included! i totally forgot that python is actually installed on my system and thats why it all works, many thanks for your help!

Farid

0

Please sign in to leave a comment.