def on_treeview_button_press_event(self, treeview, event): if event.button == 3: x = int(event.x) y = int(event.y) time = event.time pthinfo = treeview.get_path_at_pos(x, y) if pthinfo is not None: path, col, cellx, celly = pthinfo treeview.grab_focus() treeview.set_cursor(path, col, 0) #print "Right Clicked!" treeiter = self.liststore.get_iter(path) exploit_path = self.liststore.get_value(treeiter, 1) exploit = 'data/exploits/' + exploit_path os.chmod(exploit, 0644) if self.config.HAS_SOURCEVIEW: import lib.ui.editor as editor editor.main(exploit) return True
def on_treeview_button_press_event(self, treeview, event): if event.button == 3: x = int(event.x) y = int(event.y) time = event.time pthinfo = treeview.get_path_at_pos(x, y) if pthinfo is not None: path, col, cellx, celly = pthinfo treeview.grab_focus() treeview.set_cursor( path, col, 0) #print "Right Clicked!" treeiter = self.liststore.get_iter(path) exploit_path = self.liststore.get_value(treeiter ,1) exploit = 'data/exploits/' + exploit_path os.chmod(exploit, 0644) if self.config.HAS_SOURCEVIEW: import lib.ui.editor as editor editor.main(exploit) return True
def loadEditor(self, widget): """ Loads module editor """ import lib.ui.editor as editor editor.main()