GUICompNoThread¶
-
class
labpyproject.core.app.app_components.
GUICompNoThread
(channelname='GUI_CHANNEL', queue_code_in='APPTOGUI_KEYCODE', queue_code_out='GUITOAPP_KEYCODE', exchangeobjecttypes=[<class 'labpyproject.core.app.app_components.GUIExchangeObject'>])[source]¶ Bases :
labpyproject.core.app.app_components.SatelliteCompNoThread
,labpyproject.core.app.app_components.AbstractGUIComp
Composant d’interface ne pouvant être lancés en dehors du thread principal (GUI : Tkinter, Pygame…). Attention: appeler manuellement self.handleTask().
Constructeur
- Paramètres
channelname (str) – canal de communication
queue_code_in (str), queue_code_out (str) – codes associés au canal GUI_CHANNEL (sens APP->GUI)
exchangeobjecttype (list) – objets d’échange attendus
Methods Summary
ask_GUI_info
(exobj)Demande d’information relative à la GUI émanant du composant métier.
handleExchangeObject
(exobj)Traite un objet d’échange provenant de l’application métier
handle_BUS_info
(exobj)Réception d’informations en provenance du composant métier : à particulariser.
handle_choice
(exobj)Retourne l’input utilisateur : à particulariser
Réalise un update de l’affichage
show_content
(dictargs)Méthode principale d’affichage de contenu : à particulariser
Signale à l’application et au composant business que l’interface est prête.
Methods Documentation
-
ask_GUI_info
(exobj)[source]¶ Demande d’information relative à la GUI émanant du composant métier.
- Paramètres
exobj (GUIExchangeObject) –
-
handleExchangeObject
(exobj)[source]¶ Traite un objet d’échange provenant de l’application métier
- Paramètres
exobj (GUIExchangeObject) –
-
handle_BUS_info
(exobj)[source]¶ Réception d’informations en provenance du composant métier : à particulariser.
- Paramètres
exobj (GUIExchangeObject) –
-
handle_choice
(exobj)[source]¶ Retourne l’input utilisateur : à particulariser
- Paramètres
exobj (GUIExchangeObject) –