Hi,
On 11/12/15 23:19, phamton...@gmail.com wrote:
Can anyone direct me in the direction where to start the code for the
randomized of the ball to start.
Your questions over the last week or so appear to be homework
assignments. However, I'll give you a hint: in the interactive
interprete
Hi,
On 11/12/15 23:19, phamton...@gmail.com wrote:
Can anyone direct me in the direction where to start the code for the
randomized of the ball to start.
Your questions over the last week or so appear to be homework
assignments. However, I'll give you a hint: in the interactive
interprete
On Friday, December 11, 2015 at 7:55:59 PM UTC-5, Steven D'Aprano wrote:
> On Sat, 12 Dec 2015 10:19 am, phamton...@gmail.com wrote:
>
> > Can anyone direct me in the direction where to start the code for the
> > randomized of the ball to start.
>
> [...]
> > move_ball(-10, 7, 0)
>
>
> That s
On Sat, 12 Dec 2015 10:19 am, phamton...@gmail.com wrote:
> Can anyone direct me in the direction where to start the code for the
> randomized of the ball to start.
[...]
> move_ball(-10, 7, 0)
That starts the ball moving, with x-speed of -10 and y-speed of 7. Instead
use something similar to
from Tkinter import *
window = Tk()
canvas = Canvas(window, width=500, height=500, background="green")
canvas.pack()
def mouse_paddle_move(event):
mouseY = event.y
current_coords = canvas.coords("paddle")
x1 = current_coords[0]
y1 = current_coords[1]
x2 = cu
On Friday, December 11, 2015 at 5:20:13 PM UTC-6, phamt...@gmail.com wrote:
> Can anyone direct me in the direction where to start the code for the
> randomized of the ball to start.
No, because your problem needs to be simplified first. A good first step would
be to create a new script that o
Can anyone direct me in the direction where to start the code for the
randomized of the ball to start.
from Tkinter import *
window = Tk()
canvas = Canvas(window, width=500, height=500, background="green")
canvas.pack()
def mouse_paddle_move(event):
mouseY = event.y
current_coo