Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def row_selected(self, treeview, data = None):
- selection = self.get_selected ()
- # added to next line: 'or len(self.current_completions) == 0 :'
- if selection == None or len(self.current_completions) == 0 :
- return
- dict = self.current_completions[ selection ]
- apiInfo = ""
- if 'word' in dict:
- apiInfo = dict['word'] + "\n"
- if 'info' in dict:
- apiInfo = apiInfo + dict['info']
- if configuration.getShowApiInfoPanel():
- bottom_panel = Gedit.App.get_default().get_active_window().get_bottom_panel()
- bottom_panel.set_property("visible", True)
- self.apiInfoPanel.setText(apiInfo)
- self.apiInfoPanel.activate()
Advertisement
Add Comment
Please, Sign In to add comment