From c6b39091ad950d059dc4a49be6b9ef88b6e9be88 Mon Sep 17 00:00:00 2001 From: Dorian Pula Date: Fri, 24 Feb 2017 00:10:50 -0500 Subject: [PATCH] Move assets to work in new setup. --- {justcheckers/assets => assets}/credits.md | 0 {justcheckers/assets => assets}/license.md | 0 buildozer.spec | 2 +- {justcheckers/images => images}/attack_king.png | Bin {justcheckers/images => images}/attack_pawn.png | Bin {justcheckers/images => images}/backdrop.jpg | Bin {justcheckers/images => images}/defend_king.png | Bin {justcheckers/images => images}/defend_pawn.png | Bin {justcheckers/images => images}/icon.png | Bin {justcheckers/images => images}/idea.png | Bin {justcheckers/images => images}/logo.png | Bin {justcheckers/images => images}/non_play.png | Bin {justcheckers/images => images}/play.png | Bin {justcheckers/images => images}/splash.jpg | Bin justcheckers/app.py | 6 +----- justcheckers/justcheckers.kv | 2 +- 16 files changed, 3 insertions(+), 7 deletions(-) rename {justcheckers/assets => assets}/credits.md (100%) rename {justcheckers/assets => assets}/license.md (100%) rename {justcheckers/images => images}/attack_king.png (100%) rename {justcheckers/images => images}/attack_pawn.png (100%) rename {justcheckers/images => images}/backdrop.jpg (100%) rename {justcheckers/images => images}/defend_king.png (100%) rename {justcheckers/images => images}/defend_pawn.png (100%) rename {justcheckers/images => images}/icon.png (100%) rename {justcheckers/images => images}/idea.png (100%) rename {justcheckers/images => images}/logo.png (100%) rename {justcheckers/images => images}/non_play.png (100%) rename {justcheckers/images => images}/play.png (100%) rename {justcheckers/images => images}/splash.jpg (100%) diff --git a/justcheckers/assets/credits.md b/assets/credits.md similarity index 100% rename from justcheckers/assets/credits.md rename to assets/credits.md diff --git a/justcheckers/assets/license.md b/assets/license.md similarity index 100% rename from justcheckers/assets/license.md rename to assets/license.md diff --git a/buildozer.spec b/buildozer.spec index 3e6c9ca..b3f72d4 100644 --- a/buildozer.spec +++ b/buildozer.spec @@ -46,7 +46,7 @@ requirements = kivy,hostpython2,docutils #garden_requirements = # (str) Presplash of the application -presplash.filename = %(source.dir)s/images/splash.png +presplash.filename = %(source.dir)s/images/splash.jpg # (str) Icon of the application icon.filename = %(source.dir)s/images/icon.png diff --git a/justcheckers/images/attack_king.png b/images/attack_king.png similarity index 100% rename from justcheckers/images/attack_king.png rename to images/attack_king.png diff --git a/justcheckers/images/attack_pawn.png b/images/attack_pawn.png similarity index 100% rename from justcheckers/images/attack_pawn.png rename to images/attack_pawn.png diff --git a/justcheckers/images/backdrop.jpg b/images/backdrop.jpg similarity index 100% rename from justcheckers/images/backdrop.jpg rename to images/backdrop.jpg diff --git a/justcheckers/images/defend_king.png b/images/defend_king.png similarity index 100% rename from justcheckers/images/defend_king.png rename to images/defend_king.png diff --git a/justcheckers/images/defend_pawn.png b/images/defend_pawn.png similarity index 100% rename from justcheckers/images/defend_pawn.png rename to images/defend_pawn.png diff --git a/justcheckers/images/icon.png b/images/icon.png similarity index 100% rename from justcheckers/images/icon.png rename to images/icon.png diff --git a/justcheckers/images/idea.png b/images/idea.png similarity index 100% rename from justcheckers/images/idea.png rename to images/idea.png diff --git a/justcheckers/images/logo.png b/images/logo.png similarity index 100% rename from justcheckers/images/logo.png rename to images/logo.png diff --git a/justcheckers/images/non_play.png b/images/non_play.png similarity index 100% rename from justcheckers/images/non_play.png rename to images/non_play.png diff --git a/justcheckers/images/play.png b/images/play.png similarity index 100% rename from justcheckers/images/play.png rename to images/play.png diff --git a/justcheckers/images/splash.jpg b/images/splash.jpg similarity index 100% rename from justcheckers/images/splash.jpg rename to images/splash.jpg diff --git a/justcheckers/app.py b/justcheckers/app.py index da51390..b4e6e7a 100644 --- a/justcheckers/app.py +++ b/justcheckers/app.py @@ -21,7 +21,7 @@ LOG = logging.getLogger(__name__) class JustCheckersApp(App): title = 'justCheckers' - icon = 'images/icon.png' + icon = 'justcheckers/images/icon.png' use_kivy_settings = False def on_start(self): @@ -62,7 +62,3 @@ def log_system_and_game_info(): os_sys = '{name} {arch}'.format(name=os_name, arch=os_arch) Logger.info(message.format(os=os_sys, height=root_window.height, width=root_window.width)) - - -if __name__ == '__main__': - JustCheckersApp().run() diff --git a/justcheckers/justcheckers.kv b/justcheckers/justcheckers.kv index 94275dc..21e1942 100644 --- a/justcheckers/justcheckers.kv +++ b/justcheckers/justcheckers.kv @@ -91,7 +91,7 @@ ScreenManager: Label: size_hint_y: 0.1 RstDocument: - source: "justcheckers/assets/{}.md".format(root.documentation) + source: "assets/{}.md".format(root.documentation) size_hint_y: 0.75 size_hint_x: 0.9 pos_hint: {'center_x': 0.5}