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

def harpia::harpiagcfrontend::S2iHarpiaFrontend::on_BlocksTreeView_cursor_changed (   self,
  treeview 
)

Callback function called when BlocksTreeView cursor changed. Updates the Description.

Definition at line 979 of file harpiagcfrontend.py.

00979                                                             :
            """
            Callback function called when BlocksTreeView cursor changed. Updates the Description.
            """
                        
            t_oTreeViewSelection = treeview.get_selection()
            
            (t_oTreeViewModel, t_oTreeViewIter) = t_oTreeViewSelection.get_selected()

            if t_oTreeViewIter != None:
            
                  t_sBlockName = t_oTreeViewModel.get_value( t_oTreeViewIter, 0 )

                  for x in s2idirectory.block:
                        if s2idirectory.block[x]["Label"] == t_sBlockName :
                              t_oTextBuffer = gtk.TextBuffer()
                              t_oTextBuffer.set_text(s2idirectory.block[x]["Description"])
                              self.widgets['BlockDescription'].set_buffer(t_oTextBuffer)
                              break

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


Generated by  Doxygen 1.6.0   Back to index