Commit c67f520d authored by Jonathan Wiedemann's avatar Jonathan Wiedemann
Browse files

cosmetic fix in MoocPlayer.py

parent 3e8198ef
...@@ -51,7 +51,8 @@ except NameError: ...@@ -51,7 +51,8 @@ except NameError:
import importlib import importlib
importlib.reload(MoocChecker) importlib.reload(MoocChecker)
Check = MoocChecker # name MoocChecker # name MoocChecker
Check = MoocChecker
# for debug purposes # for debug purposes
DEBUG = True DEBUG = True
...@@ -280,14 +281,13 @@ class Ui_Manager(): ...@@ -280,14 +281,13 @@ class Ui_Manager():
class FCPlayer1(): class FCPlayer1():
"the first week" "the first week"
def __init__(self): def IsActive(self):
if DEBUG:print("init FCPlayer1") if DEBUG:print("FCPlayer 1 is active")
pass return True
class FCPlayer2(): class FCPlayer2():
'''the second week''' '''the second week'''
def IsActive(self): def IsActive(self):
if DEBUG:print("FCPlayer 2 is active") if DEBUG:print("FCPlayer 2 is active")
return True return True
...@@ -303,16 +303,7 @@ class FCPlayer2(): ...@@ -303,16 +303,7 @@ class FCPlayer2():
moocWBpath = os.path.dirname(moocwb_locator.__file__) moocWBpath = os.path.dirname(moocwb_locator.__file__)
moocWBpath_medias = os.path.join(moocWBpath, 'medias') moocWBpath_medias = os.path.join(moocWBpath, 'medias')
moocWB_images_path = os.path.join(moocWBpath_medias, 'images') moocWB_images_path = os.path.join(moocWBpath_medias, 'images')
#basepath = __file__.split('MoocPlayer.py')[0]
#basepath += 'medias/img/'
# img = basepath + 'img_name.ext'
#step["description"] = u'''<h3>Titre</h3> \
# <p><img src= %s width="25"/> Créer un nouveau document : \
# <ul><li>à l'aide du menu <i>Fichier</i> puis <i>Nouveau.</li> \
# <li>à l'aide du raccourcis Ctrl + N</li></ul></p>''' % ( img )
#step1
step = {} step = {}
img1 = os.path.join(moocWB_images_path, 'Document-new.svg') img1 = os.path.join(moocWB_images_path, 'Document-new.svg')
img2 = os.path.join(moocWB_images_path, 'Workbench_PartDesign.svg') img2 = os.path.join(moocWB_images_path, 'Workbench_PartDesign.svg')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment