Ejemplo n.º 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))
Ejemplo n.º 2
0
 def openBrowser(self,widget=None):
     """
     Open web browser pointing to django development server
     """
     openWithDefaultApp('http://localhost:%s' % self.currentproject.port)