My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 196: Problem with MTKineticObject when delete=False
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  txprog
Closed:  Jan 2010


 
Reported by vidril...@gmail.com, Jan 20, 2010
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
Project Member #1 txprog
(No comment was entered for this change.)
Status: Accepted
Labels: Milestone-0.4 Component-Core
Jan 20, 2010
Project Member #2 txprog
(No comment was entered for this change.)
Owner: txprog
Jan 21, 2010
Project Member #3 txprog
(No comment was entered for this change.)
Status: Done

Powered by Google Project Hosting