Skip to main content

Thread: having trouble with raw_input command python


hey guys. i'm trying make simple program opens pygame window. problem want size of window specified user via raw_input. cant seem find way that. forgive me being noob.

the raw_input() command takes input string. may problem. don't have pygame experience, assume size taken tuple. try this... haven't tested code though.

code:
height=raw_input('what height? ')  width=raw_input('what width? ')    size=width, height # make tuple out of variables    screen = pygame.display.set_mode(size) # i'm pretty sure way set screen    ...


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk having trouble with raw_input command python


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account