This Doesn't Produce A Window And I Don't Know Why
I am using VPython in my attempt to model a ball bouncing off a wall. To make my code more elegant, I have decided to use class inheritance to set the dimensions and properties of
Solution 1:
I take it you never dealt with graphic aspects before, as there is nothing about it in the code you posted. Then it is time to begin ! By default, python works in console mode. To show an actual window, with icons and stuff going across it, you'll need to write it explicitly in your code, using modules like TKinter or pygame.
I suggest you read the tutorial I found here : http://code.activestate.com/recipes/502241-bouncing-ball-simulation/ as it does what you want (with TKinter), including the window part. Take a look at it and let's see if you still need help !
Post a Comment for "This Doesn't Produce A Window And I Don't Know Why"