예제 #1
0
def create_bookmark_action(parent, url, title, icon=None, shortcut=None):
    """Create bookmark action"""
    return create_action(parent,
                         title,
                         shortcut=shortcut,
                         icon=icon,
                         triggered=lambda u=url: programs.start_file(u))
예제 #2
0
파일: explorer.py 프로젝트: koll00/Gui_SM
 def open_outside_spyder(self, fnames):
     """Open file outside Spyder with the appropriate application
     If this does not work, opening unknown file in Spyder, as text file"""
     for path in sorted(fnames):
         path = file_uri(path)
         ok = programs.start_file(path)
         if not ok:
             self.parent_widget.emit(SIGNAL("edit(QString)"), path)
예제 #3
0
파일: explorer.py 프로젝트: koll00/Gui_SM
 def open_outside_spyder(self, fnames):
     """Open file outside Spyder with the appropriate application
     If this does not work, opening unknown file in Spyder, as text file"""
     for path in sorted(fnames):
         path = file_uri(path)
         ok = programs.start_file(path)
         if not ok:
             self.parent_widget.emit(SIGNAL("edit(QString)"), path)
예제 #4
0
파일: qthelpers.py 프로젝트: koll00/Gui_SM
def create_bookmark_action(parent, url, title, icon=None, shortcut=None):
    """Create bookmark action"""
    return create_action( parent, title, shortcut=shortcut, icon=icon,
                          triggered=lambda u=url: programs.start_file(u) )