jan_flanders

Untitled

Nov 25th, 2012
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.75 KB | None | 0 0
  1.     def row_selected(self, treeview, data = None):
  2.         selection = self.get_selected ()
  3.         # added to next line:  'or len(self.current_completions) == 0 :'
  4.         if selection == None or len(self.current_completions) == 0 :
  5.             return
  6.  
  7.         dict = self.current_completions[ selection ]
  8.         apiInfo = ""
  9.         if 'word' in dict:
  10.             apiInfo = dict['word'] + "\n"
  11.         if 'info' in dict:
  12.             apiInfo = apiInfo + dict['info']
  13.         if configuration.getShowApiInfoPanel():
  14.             bottom_panel = Gedit.App.get_default().get_active_window().get_bottom_panel()
  15.             bottom_panel.set_property("visible", True)
  16.             self.apiInfoPanel.setText(apiInfo)
  17.             self.apiInfoPanel.activate()
Advertisement
Add Comment
Please, Sign In to add comment