New submission from beta:
Results:
Block: 2d = {'Blocks': 3, 'Name': 'Fregatten', 'uuid': 0} same as {'Blocks': 3,
'Name': 'Fregatten', 'uuid': 0}
Block: 2e = {'Blocks': 3, 'Name': 'Fregatten', 'uuid': 0} same as {'Blocks': 3,
'Name': 'Fregatten', 'uuid': 0}
Block: 2f = {'Blocks': 3, 'Name
beta added the comment:
import copy
ship = {'Name': 'Slagschip', 'Blocks': 5}
shipData = copy.deepcopy(ship) # needed, otherwise linked-object
shipData['uuid'] = Id # unique Id
Is this the correct Python behavior?
--
resolution: - not a bug
Hi John,
It works. Thank you veyr much.
Cheers,
Q
--
http://mail.python.org/mailman/listinfo/python-list
Hi John,
It works! thank you vey much.
I have another question. I would very appreciated if you have any clue.
I want the ball STOP whenever mouse is clicked anywhere, then ball KEEP
MOVING when next mouse click is applied. Thanks.
Regards,
Quoc
--
Dear John,
Thanks for your help. I don't know how to bind the ball only into a
program. Would you mind help me on this? I added the changeColour
function, here is a complete program.
---
from Tkinter import *
import string
class Pong(Frame):
def createWidgets(self):
Hi John,
It don't work!
I did what you told me, here is theBall function
def theBall(self):
self.ball = self.draw.create_oval(0i, 0i, 0.20i,
0.20i,
fill=red)
self.draw.tag_bind(self.ball, 'Button-1', changeColour)
Would you review all
Dear All,
I am new with Python. I have question on binding.
I have small pingpong application, I want to change color og the ball
whenever mouse is clicked. I have theBall and changeColor functions. I
don't know how to bind it together. Does anyone know? I am very
appreciate of your help. Thanks.
Hello All,
I am new with Python, your help would be very appreciated.
I have a simple pinpong applicaiton. I would like make a ball's color
change when mouse is clicked on it.
Here is my sample code:
from Tkinter import *
import string
class Pong(Frame):
def createWidgets(self):
The message contains Unicode characters and has been sent as a binary
attachment.
--
http://mail.python.org/mailman/listinfo/python-list