示例#1
0
 def viewScreenshot(self,widget=None,path=None):
     """
     Show selected screenshot in the image viewer
     """
     selected=self.iconview.selected()
     if selected:
         selected=selected[0]
         # Open Screenshot with default system app
         openWithDefaultApp('%s/%s' % (self.maingui.preferences.general.datadir,selected))
示例#2
0
文件: ddclib.py 项目: olivergs/ddc
 def openBrowser(self,widget=None):
     """
     Open web browser pointing to django development server
     """
     openWithDefaultApp('http://localhost:%s' % self.currentproject.port)