Logo Search packages:      
Sourcecode: harpia version File versions  Download package

def harpia::harpiagcfrontend::S2iHarpiaFrontend::UpdateStatus (   self,
  a_nStatus 
)

Receives a status and shows in the StatusBar.

Definition at line 530 of file harpiagcfrontend.py.

00530                                        :
            """
            Receives a status and shows in the StatusBar.
            """

            #a_nStatus
            #0 - Connecting...
            #1 - could not connect to server
            #2 - Processing...        
            #3 - could not create a new session ID
            #4 - could not send images to server
            #5 - could not send process file to server
            #6 - Process error
            #7 - Process complete
            #8 - Nothing to process
            #9 - Save error
            #10 - Code retrieved

            self.m_nStatus = a_nStatus          

            t_oStatusMessage = { 0: _("Processing..."),#cpscotti.. connecting nao tem nada a ver com a ideia... tah outdated
                                          1: _("Could not connect to server"),
                                          2: _("Processing(2)..."),
                                          3: _("Could not create a new session ID"),
                                          4: _("Could not send images to server"),
                                          5: _("Could not send process file to server"),
                                          6: _("Processing error"),
                                          7: _("Processing complete"),
                                          8: _("Nothing to process"),
                                          9: _("Save error"),
                                          10: _("Code Saved")}

            #if a_nStatus == 7 or a_nStatus == 10:
                  #self.widgets['ProcessImage'].set_from_stock( gtk.STOCK_YES, gtk.ICON_SIZE_MENU)
            #else:
                  #self.widgets['ProcessImage'].set_from_stock( gtk.STOCK_NO, gtk.ICON_SIZE_MENU  )
                  
            self.widgets['StatusLabel'].set_text(t_oStatusMessage[a_nStatus])
            
            while gtk.events_pending():
                  gtk.main_iteration(False)

      #----------------------------------------------------------------------


Generated by  Doxygen 1.6.0   Back to index