Best way to wait for string input

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kevinliu23

    #1

    Best way to wait for string input

    Hi guys,

    Python newbie here for some expert help. So basically I want to design
    a menu system that waits for a string input. I'm not sure what the
    best way of going about this is. The current system waits for a single
    character input using msvcrt.kbhit( ) and msvcrt.getch( ). Is there
    something equivalent to wait for string inputs?

  • Marc 'BlackJack' Rintsch

    #2
    Re: Best way to wait for string input

    In <1175189403.036 584.239880@o5g2 000hsb.googlegr oups.com>, kevinliu23
    wrote:
    Python newbie here for some expert help. So basically I want to design
    a menu system that waits for a string input. I'm not sure what the
    best way of going about this is. The current system waits for a single
    character input using msvcrt.kbhit( ) and msvcrt.getch( ). Is there
    something equivalent to wait for string inputs?
    The builtin `raw_input()`?

    Ciao,
    Marc 'BlackJack' Rintsch

    Comment

    Working...