def _display_about(self):
     """
     Display a dialog with some infos about the authors of le2m
     """
     fichier_auteurs = os.path.join(
         params.getp("HTMLDIR"), "le2m_auteurs.html")
     screen = GuiInformation(
         parent=self, titre=le2mtrans(u"Developers"), size=(450, 180),
         html=True, text=utiltools.get_contenu_fichier(fichier_auteurs))
     screen.show()
Beispiel #2
0
 def _display_about(self):
     """
     Display a dialog with some infos about the authors of le2m
     """
     fichier_auteurs = os.path.join(params.getp("HTMLDIR"),
                                    "le2m_auteurs.html")
     screen = GuiInformation(
         parent=self,
         titre=le2mtrans(u"Developers"),
         size=(450, 180),
         html=True,
         text=utiltools.get_contenu_fichier(fichier_auteurs))
     screen.show()
Beispiel #3
0
    def __init__(self, le2mserv):
        self._le2mserv = le2mserv

        actions = OrderedDict()
        actions[le2mtrans(u"Configure")] = self._configure
        actions[le2mtrans(u"Display parameters")] = \
            lambda _: self._le2mserv.gestionnaire_graphique. \
                display_information2(utiltools.get_contenu_fichier(
                inspect.getsourcefile(pms)))
        actions[le2mtrans(u"Start")] = lambda _: self._demarrer()
        actions[le2mtrans(u"Display payoffs")] = \
            lambda _: self._le2mserv.gestionnaire_experience.display_payoffs_onserver(
                "GneezyPotter")
        actions[le2mtrans(u"Display graph")] = self._show_fig
        self._le2mserv.gestionnaire_graphique.add_topartmenu(
            u"Gneezy Potter", actions)

        self._fig = None
    def __init__(self, le2mserv):
        self._le2mserv = le2mserv

        actions = OrderedDict()
        actions[le2mtrans(u"Configure")] = self._configure
        actions[le2mtrans(u"Display parameters")] = \
            lambda _: self._le2mserv.gestionnaire_graphique. \
                display_information2(utiltools.get_contenu_fichier(
                inspect.getsourcefile(pms)))
        actions[le2mtrans(u"Start")] = lambda _: self._demarrer()
        actions[le2mtrans(u"Display payoffs")] = \
            lambda _: self._le2mserv.gestionnaire_experience.display_payoffs_onserver(
                "GneezyPotter")
        actions[le2mtrans(u"Display graph")] = self._show_fig
        self._le2mserv.gestionnaire_graphique.add_topartmenu(
            u"Gneezy Potter", actions)

        self._fig = None