import importlib.machinery
sysfont = importlib.machinery\
- .SourceFileLoader('sysfont', os.getcwd() + '/music_sampler/sysfont.py') \
+ .SourceFileLoader('sysfont', os.getcwd()+'/music_sampler/sysfont.py') \
.load_module()
excluded_and_hidden_modules = get_deps_minimal(
runtime_hooks=runtime_hooks(),
**excluded_and_hidden_modules)
-for fontname, style in [("Ubuntu", sysfont.STYLE_NORMAL), ("Ubuntu", sysfont.STYLE_BOLD), ("Symbola", sysfont.STYLE_NONE)]:
+fonts = [
+ ("Ubuntu", sysfont.STYLE_NORMAL),
+ ("Ubuntu", sysfont.STYLE_BOLD),
+ ("Symbola", sysfont.STYLE_NONE)
+]
+
+for fontname, style in fonts:
font = sysfont.get_font(fontname, style=style)
a.datas.append((
'fonts/{}_{}.ttf'.format(fontname, style),
kivy.require("1.9.1")
from kivy.app import App
from kivy.uix.floatlayout import FloatLayout
-from kivy.uix.stacklayout import StackLayout
from kivy.uix.relativelayout import RelativeLayout
from kivy.properties import ListProperty, StringProperty
from kivy.core.window import Window
from kivy.lang import Builder
-from .key import Key
-from .mapping import Mapping
register_fonts()
+
+from .key import Key
+from .mapping import Mapping
+
from .app_blocks.actionlist import *
from .app_blocks.playlist import *