diff options
| author | tassaron | 2017-07-20 22:37:15 -0400 |
|---|---|---|
| committer | tassaron | 2017-07-20 22:37:15 -0400 |
| commit | 450b944b87487aa60a935bbeee3908e2a62cd45b (patch) | |
| tree | 0da01dffcd55ecee29692a3ebb42ceb270294221 /src/components | |
| parent | f454814867443ceeeca2a3a2c2a676947184503c (diff) | |
add component in context menu, del/ins hotkeys
+ preset manager uses mainwindow component list
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/video.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/video.py b/src/components/video.py index b35c2e5..8758b12 100644 --- a/src/components/video.py +++ b/src/components/video.py @@ -16,7 +16,7 @@ class Video: '''Video Component Frame-Fetcher''' def __init__(self, **kwargs): mandatoryArgs = [ - 'ffmpeg', # path to ffmpeg, usually core.FFMPEG_BIN + 'ffmpeg', # path to ffmpeg, usually Core.FFMPEG_BIN 'videoPath', 'width', 'height', @@ -28,7 +28,7 @@ class Video: ] for arg in mandatoryArgs: try: - exec('self.%s = kwargs[arg]' % arg) + setattr(self, arg, kwargs[arg]) except KeyError: raise BadComponentInit(arg, self.__doc__) |
