コード例 #1
0
ファイル: view.py プロジェクト: neharob/hotot
 def handle_uri(self, uri):
     if uri.startswith('file://'):
         return False
     elif uri.startswith('hotot:'):
         self.on_hotot_action(uri)
         return True
     elif uri.startswith('about:'):
         return True
     else:
         utils.open_webbrowser(uri)
     return True
コード例 #2
0
 def handle_uri(self, uri):
     if uri.startswith('file://'):
         return False
     elif uri.startswith('hotot:'):
         self.on_hotot_action(uri)
         return True
     elif uri.startswith('about:'):
         return True
     elif uri.startswith('http://stat.hotot.org'):
         return False
     else:
         utils.open_webbrowser(uri)
     return True
コード例 #3
0
ファイル: view.py プロジェクト: hermelin/hermelin-universal
 def handle_uri(self, uri):
     if uri.startswith('file://'):
         return False
     elif uri.startswith('hermelin:'):
         self.on_hermelin_action(uri)
         return True
     elif uri.startswith('about:'):
         return True
     elif uri.startswith('http://stat.hotot.org'):
         return False
     else:
         utils.open_webbrowser(uri)
     return True