diff options
| author | tassaron | 2017-07-29 13:08:28 -0400 |
|---|---|---|
| committer | tassaron | 2017-07-29 13:08:28 -0400 |
| commit | c1457b6dad4640b17679dd802e372bd46a13d2a5 (patch) | |
| tree | 368ea39f9383cd1e0e779a3860b3691fc3e6b68c /src/component.py | |
| parent | 6f8f178778c63f10b3bda42507c7d44f98884fcd (diff) | |
starting work on Waveform component
split Video class out of Video component for reuse in Waveform
Diffstat (limited to 'src/component.py')
| -rw-r--r-- | src/component.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/component.py b/src/component.py index 03023e7..fc8fbd3 100644 --- a/src/component.py +++ b/src/component.py @@ -197,7 +197,7 @@ class Component(QtCore.QObject, metaclass=ComponentMetaclass): ''' Must call super() when subclassing Triggered only before a video is exported (video_thread.py) - self.worker = the video thread worker + self.audioFile = filepath to the main input audio file self.completeAudioArray = a list of audio samples self.sampleSize = number of audio samples per video frame self.progressBarUpdate = signal to set progress bar number @@ -436,7 +436,7 @@ class ComponentError(RuntimeError): import sys if sys.exc_info()[0] is not None: string = ( - "%s component's %s encountered %s %s." % ( + "%s component's %s encountered %s %s: %s" % ( caller.__class__.name, name, 'an' if any([ @@ -444,12 +444,13 @@ class ComponentError(RuntimeError): for vowel in ('A', 'I') ]) else 'a', sys.exc_info()[0].__name__, + str(sys.exc_info()[1]) ) ) detail = formatTraceback(sys.exc_info()[2]) else: string = name - detail = "Methods:\n%s" % ( + detail = "Attributes:\n%s" % ( "\n".join( [m for m in dir(caller) if not m.startswith('_')] ) |
