![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
I am really new to Python and like the language. Is there another way for keyboard input in Python besides the nutty popup.
|
|
|
|
|
|
#2 |
|
Expert Programmer
|
lol, the nutty popup? I'm not quite sure what you're talking about, but here are the commands for keyboard input.
input("Whatever you want to put here")And raw_input("Whatever you want to put here")Some examples. x = input("Age:")
dogYears = x * 7
print dogYears
y = raw_input("What is your name? ")
print "Hello",y |
|
|
|
|
|
#3 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
x = Input("Prompt for something numeric")
creates this rather homely looking large size windows popup with a meaningless title, a rather limited length prompt string in front of an editbox, and two cheezy looking buttons. Just want to use something more modern! |
|
|
|
|
|
#4 | |
|
Expert Programmer
|
Quote:
Am I sensing sarcasm, or does that actually happen? Lol, forgive my denseness, my girlfriend tells me I don't know a thing about sarcasm either, but the input command should just prompt you for a number. I've never scene anything with a pop-up window, some buttons, and an editbox, unless you're using some sort of GUI. |
|
|
|
|
|
|
#5 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
You got a seemingly nice girlfriend there! Got to find one of those a few years from now.
It actually does happen, I am using PythonWin 2.3.4 for the IDE, maybe that's my problem!!! Believe me, this kind of input is cheezy! |
|
|
|
|
|
#6 |
|
Expert Programmer
|
ah could be, I've always just used IDLE and Python command line, but yeah the input situation you have does sound pretty cheezy.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|