Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Run application
#1
Hi there,
I have been following this tutorial http://bitesofcode.blogspot.co.uk/2011/1...ation.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.
Reply
#2
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?
Reply
#3
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.
Reply
#4
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.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020