From: pin Date: Mon, 22 Mar 2010 09:20:27 +0000 (+0000) Subject: déplacement des images du curseur dans un dossier séparé. X-Git-Url: https://scm.cri.mines-paristech.fr/git/minwii.git/commitdiff_plain/a810f09e895d66ce684214e67969fe373bf96560?ds=inline;hp=afeb92b07428059fd3a1022aefa64a1aeba68152 déplacement des images du curseur dans un dossier séparé. git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@102 fe552daf-6dbe-4428-90eb-1537e0879342 --- diff --git a/src/app/widgets/cursors.py b/src/app/widgets/cursors.py index 041c0fb..fc05b56 100755 --- a/src/app/widgets/cursors.py +++ b/src/app/widgets/cursors.py @@ -20,7 +20,7 @@ class WarpingCursor(pygame.sprite.DirtySprite, EventHandlerMixin): @staticmethod def _get_theme_images(name) : basePath = os.path.abspath(__file__).split(os.path.sep)[:-1] - basePath.append('data') + basePath.extend(['data', 'cursor']) basePath.append(name) basePath = os.path.sep.join(basePath) images = [f for f in os.listdir(basePath) if os.path.splitext(f)[1] == '.png'] diff --git a/src/app/widgets/data/black/0.png b/src/app/widgets/data/cursor/black/0.png similarity index 100% rename from src/app/widgets/data/black/0.png rename to src/app/widgets/data/cursor/black/0.png diff --git a/src/app/widgets/data/black/1.png b/src/app/widgets/data/cursor/black/1.png similarity index 100% rename from src/app/widgets/data/black/1.png rename to src/app/widgets/data/cursor/black/1.png diff --git a/src/app/widgets/data/black/10.png b/src/app/widgets/data/cursor/black/10.png similarity index 100% rename from src/app/widgets/data/black/10.png rename to src/app/widgets/data/cursor/black/10.png diff --git a/src/app/widgets/data/black/2.png b/src/app/widgets/data/cursor/black/2.png similarity index 100% rename from src/app/widgets/data/black/2.png rename to src/app/widgets/data/cursor/black/2.png diff --git a/src/app/widgets/data/black/3.png b/src/app/widgets/data/cursor/black/3.png similarity index 100% rename from src/app/widgets/data/black/3.png rename to src/app/widgets/data/cursor/black/3.png diff --git a/src/app/widgets/data/black/4.png b/src/app/widgets/data/cursor/black/4.png similarity index 100% rename from src/app/widgets/data/black/4.png rename to src/app/widgets/data/cursor/black/4.png diff --git a/src/app/widgets/data/black/5.png b/src/app/widgets/data/cursor/black/5.png similarity index 100% rename from src/app/widgets/data/black/5.png rename to src/app/widgets/data/cursor/black/5.png diff --git a/src/app/widgets/data/black/6.png b/src/app/widgets/data/cursor/black/6.png similarity index 100% rename from src/app/widgets/data/black/6.png rename to src/app/widgets/data/cursor/black/6.png diff --git a/src/app/widgets/data/black/7.png b/src/app/widgets/data/cursor/black/7.png similarity index 100% rename from src/app/widgets/data/black/7.png rename to src/app/widgets/data/cursor/black/7.png diff --git a/src/app/widgets/data/black/8.png b/src/app/widgets/data/cursor/black/8.png similarity index 100% rename from src/app/widgets/data/black/8.png rename to src/app/widgets/data/cursor/black/8.png diff --git a/src/app/widgets/data/black/9.png b/src/app/widgets/data/cursor/black/9.png similarity index 100% rename from src/app/widgets/data/black/9.png rename to src/app/widgets/data/cursor/black/9.png diff --git a/src/app/widgets/data/black/cursor.ai b/src/app/widgets/data/cursor/black/cursor.ai similarity index 100% rename from src/app/widgets/data/black/cursor.ai rename to src/app/widgets/data/cursor/black/cursor.ai diff --git a/src/app/widgets/data/black/cursorBlack.svg b/src/app/widgets/data/cursor/black/cursorBlack.svg similarity index 100% rename from src/app/widgets/data/black/cursorBlack.svg rename to src/app/widgets/data/cursor/black/cursorBlack.svg diff --git a/src/app/widgets/data/black/flash.png b/src/app/widgets/data/cursor/black/flash.png similarity index 100% rename from src/app/widgets/data/black/flash.png rename to src/app/widgets/data/cursor/black/flash.png diff --git a/src/app/widgets/data/blue/0.png b/src/app/widgets/data/cursor/blue/0.png similarity index 100% rename from src/app/widgets/data/blue/0.png rename to src/app/widgets/data/cursor/blue/0.png diff --git a/src/app/widgets/data/blue/1.png b/src/app/widgets/data/cursor/blue/1.png similarity index 100% rename from src/app/widgets/data/blue/1.png rename to src/app/widgets/data/cursor/blue/1.png diff --git a/src/app/widgets/data/blue/10.png b/src/app/widgets/data/cursor/blue/10.png similarity index 100% rename from src/app/widgets/data/blue/10.png rename to src/app/widgets/data/cursor/blue/10.png diff --git a/src/app/widgets/data/blue/2.png b/src/app/widgets/data/cursor/blue/2.png similarity index 100% rename from src/app/widgets/data/blue/2.png rename to src/app/widgets/data/cursor/blue/2.png diff --git a/src/app/widgets/data/blue/3.png b/src/app/widgets/data/cursor/blue/3.png similarity index 100% rename from src/app/widgets/data/blue/3.png rename to src/app/widgets/data/cursor/blue/3.png diff --git a/src/app/widgets/data/blue/4.png b/src/app/widgets/data/cursor/blue/4.png similarity index 100% rename from src/app/widgets/data/blue/4.png rename to src/app/widgets/data/cursor/blue/4.png diff --git a/src/app/widgets/data/blue/5.png b/src/app/widgets/data/cursor/blue/5.png similarity index 100% rename from src/app/widgets/data/blue/5.png rename to src/app/widgets/data/cursor/blue/5.png diff --git a/src/app/widgets/data/blue/6.png b/src/app/widgets/data/cursor/blue/6.png similarity index 100% rename from src/app/widgets/data/blue/6.png rename to src/app/widgets/data/cursor/blue/6.png diff --git a/src/app/widgets/data/blue/7.png b/src/app/widgets/data/cursor/blue/7.png similarity index 100% rename from src/app/widgets/data/blue/7.png rename to src/app/widgets/data/cursor/blue/7.png diff --git a/src/app/widgets/data/blue/8.png b/src/app/widgets/data/cursor/blue/8.png similarity index 100% rename from src/app/widgets/data/blue/8.png rename to src/app/widgets/data/cursor/blue/8.png diff --git a/src/app/widgets/data/blue/9.png b/src/app/widgets/data/cursor/blue/9.png similarity index 100% rename from src/app/widgets/data/blue/9.png rename to src/app/widgets/data/cursor/blue/9.png diff --git a/src/app/widgets/data/blue/cursorBlue.svg b/src/app/widgets/data/cursor/blue/cursorBlue.svg similarity index 100% rename from src/app/widgets/data/blue/cursorBlue.svg rename to src/app/widgets/data/cursor/blue/cursorBlue.svg diff --git a/src/app/widgets/data/green/0.png b/src/app/widgets/data/cursor/green/0.png similarity index 100% rename from src/app/widgets/data/green/0.png rename to src/app/widgets/data/cursor/green/0.png diff --git a/src/app/widgets/data/green/1.png b/src/app/widgets/data/cursor/green/1.png similarity index 100% rename from src/app/widgets/data/green/1.png rename to src/app/widgets/data/cursor/green/1.png diff --git a/src/app/widgets/data/green/10.png b/src/app/widgets/data/cursor/green/10.png similarity index 100% rename from src/app/widgets/data/green/10.png rename to src/app/widgets/data/cursor/green/10.png diff --git a/src/app/widgets/data/green/2.png b/src/app/widgets/data/cursor/green/2.png similarity index 100% rename from src/app/widgets/data/green/2.png rename to src/app/widgets/data/cursor/green/2.png diff --git a/src/app/widgets/data/green/3.png b/src/app/widgets/data/cursor/green/3.png similarity index 100% rename from src/app/widgets/data/green/3.png rename to src/app/widgets/data/cursor/green/3.png diff --git a/src/app/widgets/data/green/4.png b/src/app/widgets/data/cursor/green/4.png similarity index 100% rename from src/app/widgets/data/green/4.png rename to src/app/widgets/data/cursor/green/4.png diff --git a/src/app/widgets/data/green/5.png b/src/app/widgets/data/cursor/green/5.png similarity index 100% rename from src/app/widgets/data/green/5.png rename to src/app/widgets/data/cursor/green/5.png diff --git a/src/app/widgets/data/green/6.png b/src/app/widgets/data/cursor/green/6.png similarity index 100% rename from src/app/widgets/data/green/6.png rename to src/app/widgets/data/cursor/green/6.png diff --git a/src/app/widgets/data/green/7.png b/src/app/widgets/data/cursor/green/7.png similarity index 100% rename from src/app/widgets/data/green/7.png rename to src/app/widgets/data/cursor/green/7.png diff --git a/src/app/widgets/data/green/8.png b/src/app/widgets/data/cursor/green/8.png similarity index 100% rename from src/app/widgets/data/green/8.png rename to src/app/widgets/data/cursor/green/8.png diff --git a/src/app/widgets/data/green/9.png b/src/app/widgets/data/cursor/green/9.png similarity index 100% rename from src/app/widgets/data/green/9.png rename to src/app/widgets/data/cursor/green/9.png diff --git a/src/app/widgets/data/green/cursorGreen.svg b/src/app/widgets/data/cursor/green/cursorGreen.svg similarity index 100% rename from src/app/widgets/data/green/cursorGreen.svg rename to src/app/widgets/data/cursor/green/cursorGreen.svg diff --git a/src/app/widgets/data/red/0.png b/src/app/widgets/data/cursor/red/0.png similarity index 100% rename from src/app/widgets/data/red/0.png rename to src/app/widgets/data/cursor/red/0.png diff --git a/src/app/widgets/data/red/1.png b/src/app/widgets/data/cursor/red/1.png similarity index 100% rename from src/app/widgets/data/red/1.png rename to src/app/widgets/data/cursor/red/1.png diff --git a/src/app/widgets/data/red/10.png b/src/app/widgets/data/cursor/red/10.png similarity index 100% rename from src/app/widgets/data/red/10.png rename to src/app/widgets/data/cursor/red/10.png diff --git a/src/app/widgets/data/red/2.png b/src/app/widgets/data/cursor/red/2.png similarity index 100% rename from src/app/widgets/data/red/2.png rename to src/app/widgets/data/cursor/red/2.png diff --git a/src/app/widgets/data/red/3.png b/src/app/widgets/data/cursor/red/3.png similarity index 100% rename from src/app/widgets/data/red/3.png rename to src/app/widgets/data/cursor/red/3.png diff --git a/src/app/widgets/data/red/4.png b/src/app/widgets/data/cursor/red/4.png similarity index 100% rename from src/app/widgets/data/red/4.png rename to src/app/widgets/data/cursor/red/4.png diff --git a/src/app/widgets/data/red/5.png b/src/app/widgets/data/cursor/red/5.png similarity index 100% rename from src/app/widgets/data/red/5.png rename to src/app/widgets/data/cursor/red/5.png diff --git a/src/app/widgets/data/red/6.png b/src/app/widgets/data/cursor/red/6.png similarity index 100% rename from src/app/widgets/data/red/6.png rename to src/app/widgets/data/cursor/red/6.png diff --git a/src/app/widgets/data/red/7.png b/src/app/widgets/data/cursor/red/7.png similarity index 100% rename from src/app/widgets/data/red/7.png rename to src/app/widgets/data/cursor/red/7.png diff --git a/src/app/widgets/data/red/8.png b/src/app/widgets/data/cursor/red/8.png similarity index 100% rename from src/app/widgets/data/red/8.png rename to src/app/widgets/data/cursor/red/8.png diff --git a/src/app/widgets/data/red/9.png b/src/app/widgets/data/cursor/red/9.png similarity index 100% rename from src/app/widgets/data/red/9.png rename to src/app/widgets/data/cursor/red/9.png diff --git a/src/app/widgets/data/red/cursorRed.svg b/src/app/widgets/data/cursor/red/cursorRed.svg similarity index 100% rename from src/app/widgets/data/red/cursorRed.svg rename to src/app/widgets/data/cursor/red/cursorRed.svg