Jump to content

How do I make my source code run outside both the console and the shell?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
toxifyshadow

toxifyshadow

    Programmer

  • Members
  • PipPipPipPip
  • 125 posts
I have a program written in a .py format, but how can I make it run in it's own window, not inside the shell or console?
Posted Image

#2
pedro3005

pedro3005

    Newbie

  • Members
  • PipPip
  • 14 posts
You'd have to make the window happen :) If you're on Linux, try some module like 24.1. Tkinter ? Python interface to Tcl/Tk — Python v2.6.5 documentation or PyGTK

#3
Root23

Root23

    Programmer

  • Members
  • PipPipPipPip
  • 144 posts
I wouldn't mind knowing how to do this as well. I've got a few GUI's made with TKinter, and the windows console always loads with it. That's where it prints the exception handling messages.
Posted Image

#4
pedro3005

pedro3005

    Newbie

  • Members
  • PipPip
  • 14 posts
Using PyGTK, it works perfectly well (I've never used TKinter). For instance, you save a program like http://www.pygtk.org...s/helloworld.py as file.py, then run:
chmod +x file.py
Then just double click it and it runs without opening a terminal.