Esempio n. 1
0
 def _draw_part(self):
     """
     Display a dialog with the list of played part.
     The experimenter select the parts among which he/she wants to do
     a random draw for paiements for example
     :return:
     """
     parties_jouees = self._le2mserv.gestionnaire_experience.get_parts()
     ecran_parties = GuiPartsPlayed(parties_jouees, self)
     if ecran_parties.exec_():
         parties_selectionnees = ecran_parties.get_parties_selectionnees()
         if not parties_selectionnees:
             return
         self._le2mserv.gestionnaire_experience.draw_part(parties_selectionnees)
     else:
         return
Esempio n. 2
0
 def _draw_part(self):
     """
     Display a dialog with the list of played part.
     The experimenter select the parts among which he/she wants to do
     a random draw for paiements for example
     :return:
     """
     parties_jouees = self._le2mserv.gestionnaire_experience. \
         get_parts()
     ecran_parties = GuiPartsPlayed(parties_jouees, self)
     if ecran_parties.exec_():
         parties_selectionnees = ecran_parties.get_parties_selectionnees()
         if not parties_selectionnees:
             return
         self._le2mserv.gestionnaire_experience.draw_part(
             parties_selectionnees)
     else:
         return
Esempio n. 3
0
    def _display_payoffs_partsSelection(self):
        """
        Open a dialog box with the list of parts that have been played.
        The experimenter chooses which part he/she wants to be displayed
        on the remotes
        :return:
        """
        parts = self._le2mserv.gestionnaire_experience.get_parts()
        screen = GuiPartsPlayed(parts, self)
        if screen.exec_():
            choices = screen.get_parties_selectionnees()
            if choices:
                confirmation = self._le2mserv.gestionnaire_graphique.question(
                    le2mtrans(u"Display the details of the selected parts " u"on remotes?\n{}").format(choices)
                )
                if not confirmation:
                    return

                self._le2mserv.gestionnaire_experience.display_payoffs_onremotes(choices)
Esempio n. 4
0
    def _display_payoffs_partsSelection(self):
        """
        Open a dialog box with the list of parts that have been played.
        The experimenter chooses which part he/she wants to be displayed
        on the remotes
        :return:
        """
        parts = self._le2mserv.gestionnaire_experience.get_parts()
        screen = GuiPartsPlayed(parts, self)
        if screen.exec_():
            choices = screen.get_parties_selectionnees()
            if choices:
                confirmation = self._le2mserv.gestionnaire_graphique.question(
                    le2mtrans(u"Display the details of the selected parts "
                              u"on remotes?\n{}").format(choices))
                if not confirmation:
                    return

                self._le2mserv.gestionnaire_experience.display_payoffs_onremotes(
                    choices)