diff options
| author | tassaron | 2017-07-29 20:27:46 -0400 |
|---|---|---|
| committer | tassaron | 2017-07-29 20:27:46 -0400 |
| commit | 1297af61c9ce00b6dd76f8ec690baedf5bf887c7 (patch) | |
| tree | 8861afa599674fb3d6ee312baf035fa7446f242b /src/toolkit/common.py | |
| parent | c1457b6dad4640b17679dd802e372bd46a13d2a5 (diff) | |
waveform component is working, preview is glitchy
Diffstat (limited to 'src/toolkit/common.py')
| -rw-r--r-- | src/toolkit/common.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/toolkit/common.py b/src/toolkit/common.py index 128ed08..5d424e0 100644 --- a/src/toolkit/common.py +++ b/src/toolkit/common.py @@ -6,22 +6,9 @@ import string import os import sys import subprocess -import signal -import math from collections import OrderedDict -def scale(scale, width, height, returntype=None): - width = (float(width) / 100.0) * float(scale) - height = (float(height) / 100.0) * float(scale) - if returntype == str: - return (str(math.ceil(width)), str(math.ceil(height))) - elif returntype == int: - return (math.ceil(width), math.ceil(height)) - else: - return (width, height) - - def badName(name): '''Returns whether a name contains non-alphanumeric chars''' return any([letter in string.punctuation for letter in name]) @@ -69,14 +56,6 @@ def checkOutput(commandList, **kwargs): return subprocess.check_output(commandList, **kwargs) -@pipeWrapper -def openPipe(commandList, **kwargs): - return subprocess.Popen(commandList, **kwargs) - -def closePipe(pipe): - pipe.stdout.close() - pipe.send_signal(signal.SIGINT) - def disableWhenEncoding(func): def decorator(self, *args, **kwargs): if self.encoding: |
