mansrz / pymt

Automatically exported from code.google.com/p/pymt
0 stars 0 forks source link

MTKineticList with searchable parameter set to False #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create an object MTKineticList with searchable parameter set to False
a = MTKineticList(pos=(10, 10),size=(200, 300),w_limit=1, title='',
friction=10, deletable=False, searchable=False, velstop=1.5)
2.
3.

What is the expected output? What do you see instead?
File "C:\Program
Files\Python25\Lib\site-packages\pymt\ui\widgets\kinetic.py", line 237, in
__init__
    self.a_sinput_in = Animation(self.sinput, 'Move In', 'y', self.y +
self.height - 40 - self.sinput.size[1], 1, 10)
AttributeError: 'MTKineticList' object has no attribute 'sinput'

What version of the product are you using? On what operating system?
Python 2.5.4 on XP 32bits

Please provide any additional information below.

i get the following :

Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit
(Intel)] on win32
Type "copyright", "credits" or "license()" for more information.

    ****************************************************************
    Personal firewall software may warn about the connection IDLE
    makes to its subprocess using this computer's internal loopback
    interface.  This connection is not visible on any external
    interface and no data is sent to or received from the Internet.
    ****************************************************************

IDLE 1.2.4      ==== No Subprocess ====
>>> 
[INFO              ] Fbo will use hardware Framebuffer
Traceback (most recent call last):
  File "C:\Documents and
Settings\poq\Bureau\PyMT\pymt-0.2\examples\touchtracer\object_calendar_AW5bis_te
stcircles7.py",
line 49, in <module>
    evenement_det = MTKineticList(pos=(10, 10),size=(200, 300),w_limit=1,
title='', friction=10, deletable=False, searchable=False, velstop=1.5)
  File "C:\Program
Files\Python25\Lib\site-packages\pymt\ui\widgets\kinetic.py", line 237, in
__init__
    self.a_sinput_in = Animation(self.sinput, 'Move In', 'y', self.y +
self.height - 40 - self.sinput.size[1], 1, 10)
AttributeError: 'MTKineticList' object has no attribute 'sinput'
>>> 

temporarly solved (in case MTKineticList s searchable parameter is set to
False) by modifying kinetic.py", line 237 :

"""
#Animations to hide and show the search text input box
self.a_sinput_in = Animation(self.sinput, 'Move In', 'y', self.y +
self.height - 40 - self.sinput.size[1], 1, 10)
self.a_sinput_out = Animation(self.sinput, 'Move Out', 'y', self.y +
self.height - self.sinput.size[1], 1, 10)
"""

Original issue reported on code.google.com by awa...@gmail.com on 28 Apr 2009 at 7:00

GoogleCodeExporter commented 9 years ago
What version of the software are you using?  I believe I fixed this several 
revisions
ago.

Original comment by xelap...@gmail.com on 28 Apr 2009 at 11:04

GoogleCodeExporter commented 9 years ago
i use
Python 2.5.4
PYMT 0.2

Original comment by awa...@gmail.com on 29 Apr 2009 at 12:21

GoogleCodeExporter commented 9 years ago
Ok, please get the latest mercurial revision.  I really need to talk to the 
other
PyMT people about versions.

Good Luck!

Original comment by xelap...@gmail.com on 29 Apr 2009 at 12:27

GoogleCodeExporter commented 9 years ago

Original comment by txprog on 7 May 2009 at 12:33

GoogleCodeExporter commented 9 years ago
Fixed in 0.3 as the last comment said.

Original comment by txprog on 17 Aug 2009 at 8:23