Also I am struggling to understand:
def move_tank(self, dx, dy):
self.x += dx
self.y += dy
self.canvas.move(self.id, dx, dy)
Where does the dx and dy values get input?
--
https://mail.python.org/mailman/listinfo/python-list
Peter, in your code what does that self.root = root mean in the __init__
function of the class
--
https://mail.python.org/mailman/listinfo/python-list
Wow thankyou that code is really good, I had no programming knowledge until 2
months ago, I enjoy your descriptions it is really helpful for me. I like to
understand what the code does before using it myself or a variant of it.
Will tweak bits tonight the project is in tomorrow. This code is jus
Hi I have created some code, which moves a rectangle around and when it hits
the edge it picks a random new direction. It does this by the count function
within my class. I am wanting to create a button to randomly change count but I
my class seems to be getting errors.
I also wanted to create
Thankyou for all your help I have managed to pick a way that works from your
suggestions :D
--
https://mail.python.org/mailman/listinfo/python-list
On Wednesday, 23 November 2016 19:30:21 UTC, Chris Kaynor wrote:
> On Wed, Nov 23, 2016 at 11:17 AM, Thomas Grops via Python-list
> wrote:
> > I need a way of generating a random number but there is a catch:
> >
> > I don't want to include cert
On Wednesday, 23 November 2016 19:30:04 UTC, Thomas Nyberg wrote:
> On 11/23/2016 02:17 PM, Thomas Grops via Python-list wrote:
> > I need a way of generating a random number but there is a catch:
> >
> > I don't want to include certain numbers, is this possible?
&g
I need a way of generating a random number but there is a catch:
I don't want to include certain numbers, is this possible?
random.randint(1,100) works as it will randomly pick numbers between 1 and 100
but say i don't want 48 to come out is there a way of doing this. It needs to
be an integer
thankyou so much, that is the exact help I required to put me in the right
direction :D
--
https://mail.python.org/mailman/listinfo/python-list