input question

Bjorn Pettersen bjorn at roguewave.com
Sun Aug 6 16:18:15 EDT 2000


"cræsh" wrote:
> 
> HI!!
> I've just started with python. I've already finished with the tutorial, but
> I still cant begin.
> I've programed before with BASIC (AmstradB, QB and VB(...jes, for windoze)),
> but I cant find a command to get some data from the user (like 'input "How
> do you feel?", a$' in Basic, or 'cin<<a' in c/c++).
> Another question: how do I build up a window with some buttons with
> pythonwin? I 've found some commands like 'win32con.CButton.CreateWindow' or
> something similar, but I get errors. Is there any IDE aviable for download?

feel = raw_input("How do you feel? ")
number = input("Enter a number: ")

for the gui stuff I suggest you look at Tkinter and/or wxPython...

-- bjorn

ps: I'm sure you meant cin >> a <wink>




More information about the Python-list mailing list