| Issue 196: | Problem with MTKineticObject when delete=False | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. Setup a MTKineticList where search and delete is deactivated
k = MTKineticList(y=200, size=(130, 500), friction=1, do_x=False,
h_limit=0, do_y=True, title=None, deletable=False, padding_x=0,
searchable=False, w_limit=1, padding_y=20, orientation='vertical')
2. Add MTKineticObject's
something = MTKineticImage(filename='something.png', deletable=False)
k.add_widget(something)
3. Run
What is the expected output? The kinetic list with kinetic objects in there.
What do you see instead? Instead I see an error related to the 3rd (also on 4th) line of the update
method of class MTKineticObject in kineticlist.py. The on_press method of this class will also be
a problem if MTKineticItem delete is set to False.
File "/Library/Python/2.6/site-packages/pymt/ui/widgets/composed/kineticlist.py", line 588,
in update
self.db.pos = (self.x + self.width-40, self.y + self.height-40)
AttributeError: 'MTKineticImage' object has no attribute 'db'
What version of the product are you using? On what operating system?
0.4.1
Please provide any additional information below.
Jan 20, 2010
(No comment was entered for this change.)
Owner:
txprog
Jan 21, 2010
(No comment was entered for this change.)
Status:
Done
|
Labels: Milestone-0.4 Component-Core