Starting IDLE without a subprocess

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PythonNotSoGuru
    New Member
    • Oct 2007
    • 21

    Starting IDLE without a subprocess

    Could you pls explain how to get this to run without subprocesses mouse click by mouse click because im still not able to find idle help.
    Thanx
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by PythonNotSoGuru
    Could you pls explain how to get this to run without subprocesses mouse click by mouse click because im still not able to find idle help.
    Thanx
    On Windows, all you have to do is right-click a .py file, pull down to Edit with IDLE and you'll have IDLE running without any subprocess.

    Comment

    • PythonNotSoGuru
      New Member
      • Oct 2007
      • 21

      #3
      Thank you so much FINALLY AN ANSWER!

      Comment

      • bartonc
        Recognized Expert Expert
        • Sep 2006
        • 6478

        #4
        Originally posted by PythonNotSoGuru
        Thank you so much FINALLY AN ANSWER!
        Actually, that precise question hasn't come up. I'm glad you asked.

        There is also a command-line driven method which entails starting a shell command prompt (Start->Run cmd, on Windows) then type:
        Code:
        python idle.py -n
        Provide that you have set up Python's location in you PATH environment variable.

        With that caveat in mind, on Windows, you could also create a shortcut to the idle.py file and give the command-line option there.

        Comment

        • PythonNotSoGuru
          New Member
          • Oct 2007
          • 21

          #5
          Ok cool. I was just wondering wether there are any things that wont work properly when you run python without the subprocesses for example i am working with pygame and I just want to know if anything wont work without the subprocesses running. Thanks.

          Comment

          • bartonc
            Recognized Expert Expert
            • Sep 2006
            • 6478

            #6
            Originally posted by PythonNotSoGuru
            Ok cool. I was just wondering wether there are any things that wont work properly when you run python without the subprocesses for example i am working with pygame and I just want to know if anything wont work without the subprocesses running. Thanks.
            Since IDLE is Tkinter based, anything that uses Tkinter will not work properly.
            The issue for "pure python" code is that the IDE's names space and your code's name space are all mashed together without a subprocess. IDLE and Tkinter are both showing there age and there is not much support/interest for either, these days.

            The real answer is to get a better IDE. Once you see what a wxPython based GUI looks like, you'll probably never look back at Tkinter. Two of my favorites are (in no particular oder) Stani's Python Editor -SPE. and Boa Constructor. The former is great at browsing your codes name space and uses wxGlade for GUI code generation, the latter is a full RAD GUI generating tool. I use Boa, myself.

            Comment

            Working...