Changeset - 17bee25a20cb
[Not reviewed]
default
0 11 0
Drew Perttula - 6 years ago 2019-05-28 06:46:08
drewp@bigasterisk.com
7 files changed with 12 insertions and 7 deletions:
0 comments (0 inline, 0 general)
bin/keyboardcomposer
Show inline comments
 
@@ -532,8 +532,9 @@ class KeyboardComposer(tk.Frame, SubClie
 
        row['bg'] = 'black'
 

	
 
    def get_levels(self):
 
        return dict([(uri, box.getVal())
 
                     for uri, box in list(self.subbox.items())])
 
        return dict([
 
            (uri, box.getVal()) for uri, box in list(self.subbox.items())
 
        ])
 

	
 
    def get_output_settings(self, _graph=None):
 
        _graph = _graph or self.graph
light9/FlyingFader.py
Show inline comments
 
from tkinter import tix
 
from time import time
 

	
 

	
 
class Mass:
 

	
 
    def __init__(self):
light9/effecteval/effectloop.py
Show inline comments
 
@@ -69,7 +69,8 @@ class EffectLoop(object):
 
        old = now - self.requestTime
 
        if old > self.coastSecs:
 
            try:
 
                r = yield treq.get(networking.musicPlayer.path('time'), timeout=.5)
 
                r = yield treq.get(networking.musicPlayer.path('time'),
 
                                   timeout=.5)
 
                response = yield r.json_content()
 
            except TimeoutError:
 
                log.warning("TimeoutError: using stale time from %.1f ago", old)
light9/showconfig.py
Show inline comments
 
@@ -58,7 +58,8 @@ def songOnDisk(song: URIRef) -> bytes:
 
    if not name:
 
        raise ValueError("Song %r has no :songFilename" % song)
 

	
 
    return path.abspath(path.join(
 
    return path.abspath(
 
        path.join(
 
        cast(Literal, root).toPython(),
 
        cast(Literal, name).toPython()))
 

	
light9/tkdnd.py
Show inline comments
 
@@ -2,6 +2,7 @@ from glob import glob
 
from os.path import join, basename
 
from typing import Dict, Any
 

	
 

	
 
class TkdndEvent(object):
 
    """
 
    see http://www.ellogon.org/petasis/tcltk-projects/tkdnd/tkdnd-man-page
light9/vidref/musictime.py
Show inline comments
 
@@ -126,10 +126,10 @@ class MusicTime(object):
 

	
 
    def sendTime(self, t):
 
        """request that the player go to this time"""
 
        treq.post(networking.musicPlayer.path('time'),
 
        treq.post(
 
            networking.musicPlayer.path('time'),
 
                  data=json.dumps({
 
                      "t": time
 
                  }).encode('utf8'),
 
                  headers={b"content-type": [b"application/json"]},
 
        )
 
        
tasks.py
Show inline comments
 
@@ -47,7 +47,7 @@ def mypy(ctx):
 
    #    run([src])# + pkg_sources())
 
@task
 
def reformat(ctx):
 
    ctx.run("env/bin/yapf --verbose --parallel --in-place --style google light9/**/*.py `file --no-pad  bin/* | grep 'Python script' | perl -lpe 's/:.*//'`")
 
    ctx.run("env/bin/yapf --verbose --parallel --in-place --style google light9/*.py light9/*/*.py `file --no-pad  bin/* | grep 'Python script' | perl -lpe 's/:.*//'`")
 
    
 
@task
 
def test(ctx):
0 comments (0 inline, 0 general)