Python Forum
Run application - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: Run application (/thread-2410.html)



Run application - iFunKtion - Mar-14-2017

Hi there,
I have been following this tutorial http://bitesofcode.blogspot.co.uk/2011/10/nexsys-running-application.html which is great, but the only  problem is he never completed it and there issues that have now become quite a problem, the simplest of which is how do you actually run the program from outside python?

The main.py is within the package, and I have no idea how you go about starting an application like this. Obviously you can run python, then import the module and then run it, that is what I have been doing now for months, but now that I am learning threading, I can't work out what is done as the main thread always seems to be python itself, which of course does not quit when the program quits.

Can someone help me with this, or just point me somewhere where I can learn about this area of application development.

Thanks

so for the mean time, I have taken out the main.py file out of the package, so I can work, but I am still interested in good blog posts about application structuring please.


RE: Run application - Larz60+ - Mar-14-2017

Please answer:
  • Your operating system
  • Version of python you have installed
  • Do you have the proper packages installed? I see PyQt4, and he asks you to install pyside.
  • Do you know how to use any python tools?



RE: Run application - iFunKtion - Mar-15-2017

Hi,

Running Linux Raspbian on one computer, and Linux Mint 18 on another.

Raspbian is running Python 3.4.1
Mint is running latest python 3.6
Both have the following installed
PyQt4, matplotlib, pandas, numpy, ISO8601

and finally, no, I am not familiar with python tools, but will look them up now.


RE: Run application - Larz60+ - Mar-15-2017

OK from a terminal window you should be able to type python main.py
and get started.

If you plan to make changes to the software, you have idle (a built in (usually)
IDE) but it's not the greatest. There are editors out there that are liked by quite
a few of the moderators on this forum.
Atom is liked by some, my preference is PyCharm. The community version is free.
Atom can be found here: https://atom.io/
PyCharm can be found here: https://www.jetbrains.com/pycharm/download
Both will allow you to run python from the IDE, as will IDLE.