class BuildExe:
def __init__(self):
#Name of starting .py
- self.script = "src/minwii/app.py"
+ self.script = "src/minwii/start_win.py"
#Name of program
self.project_name = "MINWii"
'icon_resources': [(0, self.icon_file)],
'copyright': self.copyright
}],
- options = {'py2exe': {'optimize': 2, 'bundle_files': 1, 'compressed': True, \
- 'excludes': self.exclude_modules, 'packages': self.extra_modules, \
- 'dll_excludes': self.exclude_dll} },
+ options = {'py2exe': {#'optimize': 2,
+ 'bundle_files': 1,
+ #'compressed': True,
+ 'excludes': self.exclude_modules,
+ 'packages': self.extra_modules,
+ 'dll_excludes': self.exclude_dll}
+ },
zipfile = self.zipfile_name,
data_files = extra_datas,
dist_dir = self.dist_dir
if operator.lt(len(sys.argv), 2):
sys.argv.append('py2exe')
BuildExe().run() #Run generation
- raw_input("Press any key to continue") #Pause to let user see that things ends
+ #raw_input("Press any key to continue") #Pause to let user see that things ends
import pygame
from pgu.gui import Desktop
from pgu.gui import QUIT
-from widgets.launch import LaunchScreen
-from widgets.home import Home
-from widgets.playingscreen import SongPlayingScreen, PlayingScreen
-from widgets.instrumentselector import InstrumentSelector
-from synth import Synth
-from eventutils import EventDispatcher
-from musicxml import musicXml2Song
-from config import SONG_FILE_PATH
-from globals import PLAYING_MODES_DICT
-from log import console, LOG_FORMAT_VERSION, envLogger
+from minwii.widgets.launch import LaunchScreen
+from minwii.widgets.home import Home
+from minwii.widgets.playingscreen import SongPlayingScreen, PlayingScreen
+from minwii.widgets.instrumentselector import InstrumentSelector
+from minwii.synth import Synth
+from minwii.eventutils import EventDispatcher
+from minwii.musicxml import musicXml2Song
+from minwii.config import SONG_FILE_PATH
+from minwii.globals import PLAYING_MODES_DICT
+from minwii.log import console, LOG_FORMAT_VERSION, envLogger
class MinWii(object):
--- /dev/null
+# -*- coding: utf-8 -*-
+"""
+lancement de l'application winwii
+
+$Id$
+$URL$
+"""
+
+
+import pygame
+from minwii.app import MinWii
+
+
+def main(wiimoteSupport) :
+ pygame.init()
+ minwii = MinWii(wiimoteSupport=wiimoteSupport)
+ minwii.run()
+ pygame.quit()
+
+if __name__ == "__main__" :
+ main(True)
$URL$
"""
import pygame
-import gradients
from math import floor
-from globals import BACKGROUND_LAYER
-from globals import FOREGROUND_LAYER
-from globals import hls_to_rgba_8bits
-from config import OFF_LUMINANCE
-from config import OFF_SATURATION
-from config import ON_TOP_LUMINANCE
-from config import ON_BOTTOM_LUMINANCE
-from config import ON_SATURATION
-from config import ON_COLUMN_OVERSIZING
-from config import ON_COLUMN_ALPHA
-from config import LYRICS_FONT, NOTES_FONT
-from config import FONT_COLOR
-import events
+import minwii.gradients
+from minwii.globals import BACKGROUND_LAYER
+from minwii.globals import FOREGROUND_LAYER
+from minwii.globals import hls_to_rgba_8bits
+from minwii.config import OFF_LUMINANCE
+from minwii.config import OFF_SATURATION
+from minwii.config import ON_TOP_LUMINANCE
+from minwii.config import ON_BOTTOM_LUMINANCE
+from minwii.config import ON_SATURATION
+from minwii.config import ON_COLUMN_OVERSIZING
+from minwii.config import ON_COLUMN_ALPHA
+from minwii.config import LYRICS_FONT, NOTES_FONT
+from minwii.config import FONT_COLOR
+import minwii.events
class Column(pygame.sprite.DirtySprite) :
import os
from threading import Thread
import time
-from eventutils import EventHandlerMixin, event_handler
+from minwii.eventutils import EventHandlerMixin, event_handler
from itertools import cycle
class WarpingCursor(pygame.sprite.DirtySprite, EventHandlerMixin):
from pgu.gui import QUIT
from pgu.gui import CHANGE
import pygame
-from globals import PLAYING_MODES
+from minwii.globals import PLAYING_MODES
from songfilebrowser import FileOpenDialog
import os.path
"""
import os.path
import pygame
-from eventutils import event_handler, EventDispatcher, EventHandlerMixin
+from minwii.eventutils import event_handler, EventDispatcher, EventHandlerMixin
+from minwii.config import FRAMERATE
+from minwii.config import INSTRUMENTS
+from minwii.globals import BACKGROUND_LAYER
+from minwii.globals import FOREGROUND_LAYER
+from minwii.globals import CURSOR_LAYER
+from minwii.globals import hls_to_rgba_8bits
from cursors import WarpingCursor
-from config import FRAMERATE
-from config import INSTRUMENTS
-from globals import BACKGROUND_LAYER
-from globals import FOREGROUND_LAYER
-from globals import CURSOR_LAYER
-from globals import hls_to_rgba_8bits
class InstrumentSelector(pygame.sprite.LayeredDirty, EventHandlerMixin) :
$URL$
"""
import pygame
-from cursors import WarpingCursor
-from column import Column
-import events
-from eventutils import event_handler, EventDispatcher, EventHandlerMixin
import types
-from musicxml import Tone
-from config import FRAMERATE
-from config import FIRST_HUE
-from config import MIDI_VELOCITY_RANGE
-from config import MIDI_PAN_RANGE
-from config import MIDI_VELOCITY_WRONG_NOTE_ATTN
+import minwii.events as events
+from minwii.eventutils import event_handler, EventDispatcher, EventHandlerMixin
+from minwii.musicxml import Tone
+from minwii.config import FRAMERATE
+from minwii.config import FIRST_HUE
+from minwii.config import MIDI_VELOCITY_RANGE
+from minwii.config import MIDI_PAN_RANGE
+from minwii.config import MIDI_VELOCITY_WRONG_NOTE_ATTN
+from minwii.globals import BACKGROUND_LAYER
+from minwii.globals import CURSOR_LAYER
+from minwii.globals import PLAYING_MODES_DICT
-from globals import BACKGROUND_LAYER
-from globals import CURSOR_LAYER
-from globals import PLAYING_MODES_DICT
+from cursors import WarpingCursor
+from column import Column
class PlayingScreenBase(pygame.sprite.LayeredDirty, EventHandlerMixin) :