Exemple #1
0
 def on_browse_files(self, widget):
     game = Game(self.view.selected_game)
     path = game.get_browse_dir()
     if path and os.path.exists(path):
         Gtk.show_uri(None, "file://" + path, Gdk.CURRENT_TIME)
     else:
         dialogs.NoticeDialog("Can't open %s \nThe folder doesn't exist." % path)
Exemple #2
0
 def on_browse_files(self, widget):
     game = Game(self.view.selected_game)
     path = game.get_browse_dir()
     if path and os.path.exists(path):
         system.xdg_open(path)
     else:
         dialogs.NoticeDialog("Can't open %s \nThe folder doesn't exist." %
                              path)
Exemple #3
0
 def on_browse_files(self, widget):
     game = Game(self.view.selected_game)
     path = game.get_browse_dir()
     if path and os.path.exists(path):
         Gtk.show_uri(None, 'file://' + path, Gdk.CURRENT_TIME)
     else:
         dialogs.NoticeDialog("Can't open %s \nThe folder doesn't exist." %
                              path)
Exemple #4
0
 def on_browse_files(self, widget):
     game = Game(self.view.selected_game)
     path = game.get_browse_dir()
     if path and os.path.exists(path):
         subprocess.Popen(['xdg-open', path])
     else:
         dialogs.NoticeDialog("Can't open %s \nThe folder doesn't exist." %
                              path)
Exemple #5
0
 def on_browse_files(self, widget):
     game = Game(self.view.selected_game)
     path = game.get_browse_dir()
     if path and os.path.exists(path):
         subprocess.Popen(['xdg-open', path])
     else:
         dialogs.NoticeDialog(
         "Can't open %s \nThe folder doesn't exist." % path)
Exemple #6
0
 def on_browse_files(self, _widget):
     """Callback to open a game folder in the file browser"""
     game = Game(self.view.selected_game)
     path = game.get_browse_dir()
     if path and os.path.exists(path):
         open_uri('file://%s' % path)
     else:
         dialogs.NoticeDialog("Can't open %s \nThe folder doesn't exist." %
                              path)
Exemple #7
0
 def on_browse_files(self, widget):
     game = Game(self.view.selected_game)
     path = game.get_browse_dir()
     if path and os.path.exists(path):
         system.xdg_open(path)
     else:
         dialogs.NoticeDialog(
             "Can't open %s \nThe folder doesn't exist." % path
         )