Help with Python

Discussion in 'Computer Science & Culture' started by Xelios, Feb 5, 2002.

Thread Status:
Not open for further replies.
  1. Xelios We're setting you adrift idiot Registered Senior Member

    Messages:
    2,447
    Ok, I'm learning Python at the moment, and I will undoubtably have some questions. So I thought I'd start this thread as a place for me to gather yet more info on the language.

    My first question, I have a problem when running my programs. They will complete but the DOS window will shut down right away. You can't even see what the program did before it vanishes. Is there any way to stop this from happening besides opening another prompt to the user or something like that?
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. malisha Registered Senior Member

    Messages:
    64
    Python, good choice for a starting programming language, i havnt used it as much as i should cause i like perl a little better but python is good

    Please Register or Log in to view the hidden image!



    Anyway, what you can do is just run the program of the command line, open up a dos window go to the dir were the program is and just run it of the commandline by typeing in 'python program_name.py'. When you double click the program you have just written if you dont have some sort of input waitng like reading of the terminal the dos window will automatically close.
     
  4. Google AdSense Guest Advertisement



    to hide all adverts.
  5. Xelios We're setting you adrift idiot Registered Senior Member

    Messages:
    2,447
    Thanks malisha

    Please Register or Log in to view the hidden image!



    More questions to come later, I'm sure

    Please Register or Log in to view the hidden image!

     
  6. Google AdSense Guest Advertisement



    to hide all adverts.
  7. Xelios We're setting you adrift idiot Registered Senior Member

    Messages:
    2,447
    Wow, Python is pretty easy, almost like real english.

    This isn't really python related, but is there a way to stop all these annoying apps like ICQ and MSN from opening on startup?
     
  8. malisha Registered Senior Member

    Messages:
    64
    yeh, pythons like that, its pretty cool.

    What do you mean by startup, as in internet startup or computer booting startup.
    If its logging onto the internet you can disable the net detect agent in the system tray by just right clicking it and select disable.

    Dont know if that helps,
     
  9. Xelios We're setting you adrift idiot Registered Senior Member

    Messages:
    2,447
    No, it's whenever Windows starts up, I have all these icons in the tray and there's only a few that I really need. Plus each one eats up it's own little piece of memory.
     
  10. Avatar smoking revolver Valued Senior Member

    Messages:
    19,083
    hmm - disabling startup. you can do it with no programming. write in the search msconfig* and click the startup field. you can edit your startup there.

    *this is if you are using WIN 98 and up.
     
  11. Xelios We're setting you adrift idiot Registered Senior Member

    Messages:
    2,447
    Thanks Avatar, it worked

    Please Register or Log in to view the hidden image!

     
  12. Avatar smoking revolver Valued Senior Member

    Messages:
    19,083
    no prob
     
  13. Xelios We're setting you adrift idiot Registered Senior Member

    Messages:
    2,447
    I was wondering, how do I get a windows dialog box to pop up with a message? Like the "Are you sure you want to quit?" boxes with yes and no buttons. Is this supported in Python?
     
  14. Xelios We're setting you adrift idiot Registered Senior Member

    Messages:
    2,447
    Anyone?
     
  15. Adam §Þ@ç€ MØnk€¥ Registered Senior Member

    Messages:
    7,415
    That's the first windows coding thing I learnt, but not in Python. Sorry.
     
Thread Status:
Not open for further replies.

Share This Page