Changeset 31794 for lang/python/tremolo/indications
- Timestamp:
- 04/02/09 00:09:16 (4 years ago)
- Files:
-
- 1 modified
-
lang/python/tremolo/indications/foundation.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/python/tremolo/indications/foundation.py
r31792 r31794 1 1 #!/usr/bin/env python 2 2 #-*- coding:utf-8 -*- 3 4 import sys 5 if "../" not in sys.path: sys.path.append("../") 6 from assets.foundation import Asset 3 7 4 8 class Indication (object): … … 24 28 """コンストラクタです""" 25 29 self.parent = parent 26 self.asset = asset 30 if issubclass(asset.__class__, Asset): 31 self.asset = asset 32 else: raise TypeError("value 'asset' is not valid.") 27 33 28 34 def getDescription(self): … … 46 52 """ 47 53 @classmethod 48 def isRealIndication(cls): return False54 def isRealIndication(cls): return True 49 55 @classmethod 50 56 def getType(cls): return float … … 53 59 """コンストラクタです。""" 54 60 Indication.__init__(self, self, asset) 55 self.children = self.[]61 self.children = [] 56 62 57 63 def evaluate(self, t=-1):
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)