コード例 #1
0
ファイル: mainwindow.py プロジェクト: NoGare/deluge1
 def on_drag_data_received_event(self, widget, drag_context, x, y, selection_data, info, timestamp):
     log.debug("Selection(s) dropped on main window %s", selection_data.data)
     if selection_data.get_uris():
         process_args(selection_data.get_uris())
     else:
         process_args(selection_data.data.split())
     drag_context.finish(True, True)
コード例 #2
0
 def on_drag_data_received_event(self, widget, drag_context, x, y, selection_data, info, timestamp):
     log.debug("Selection(s) dropped on main window %s", selection_data.data)
     if selection_data.get_uris():
         process_args(selection_data.get_uris())
     else:
         process_args(selection_data.data.split())
     drag_context.finish(True, True)
コード例 #3
0
ファイル: mainwindow.py プロジェクト: cheuschober/deluge
 def on_drag_data_received_event(self, widget, drag_context, x, y,
                                 selection_data, info, timestamp):
     args = []
     for uri in selection_data.data.split():
         args.append(urllib.unquote(uri))
     process_args(args)
     drag_context.finish(True, True)
コード例 #4
0
ファイル: mainwindow.py プロジェクト: s0undt3ch/Deluge
 def on_drag_data_received_event(self, widget, drag_context, x, y, selection_data, info, timestamp):
     args = []
     for uri in selection_data.data.split():
         if deluge.common.windows_check():
             args.append(urllib.url2pathname(uri[7:]))
         else:
             args.append(urllib.unquote(urlparse(uri).path))
     process_args(args)
     drag_context.finish(True, True)
コード例 #5
0
ファイル: mainwindow.py プロジェクト: orther/Deluge
 def on_drag_data_received_event(self, widget, drag_context, x, y,
                                 selection_data, info, timestamp):
     args = []
     for uri in selection_data.data.split():
         if deluge.common.windows_check():
             args.append(urllib.url2pathname(uri[7:]))
         else:
             args.append(urllib.unquote(urlparse(uri).path))
     process_args(args)
     drag_context.finish(True, True)
コード例 #6
0
ファイル: gtkui.py プロジェクト: laanwj/deluge
 def nsapp_open_file(osxapp, filename):
     # Will be raised at app launch (python opening main script)
     if filename.endswith('Deluge-bin'):
         return True
     from deluge.ui.gtkui.ipcinterface import process_args
     process_args([filename])
コード例 #7
0
 def add_torrent(model, path, iter, data):
     torrent_path = model.get_value(iter, 1)
     process_args([torrent_path])
コード例 #8
0
ファイル: gtkui.py プロジェクト: EiNSTeiN-/deluge-gtk3
 def nsapp_open_file(osxapp, filename):
     # Will be raised at app launch (python opening main script)
     if filename.endswith('Deluge-bin'):
         return True
     from deluge.ui.gtkui.ipcinterface import process_args
     process_args([filename])
コード例 #9
0
 def add_torrent(model, path, _iter, data):
     torrent_path = model.get_value(_iter, 1).decode('utf-8')
     process_args([torrent_path])
コード例 #10
0
 def add_torrent(model, path, iter, data):
     torrent_path = model.get_value(iter, 1)
     process_args([torrent_path])
コード例 #11
0
ファイル: gtkui.py プロジェクト: deluge-torrent/deluge
 def nsapp_open_file(osxapp, filename):
     # Ignore command name which is raised at app launch (python opening main script).
     if filename == sys.argv[0]:
         return True
     process_args([filename])
コード例 #12
0
ファイル: gtkui.py プロジェクト: newfyle/deluge
 def nsapp_open_file(osxapp, filename):
     # Ignore command name which is raised at app launch (python opening main script).
     if filename == sys.argv[0]:
         return True
     process_args([filename])
コード例 #13
0
ファイル: gtkui.py プロジェクト: ptfancier/deluge
 def nsapp_open_file(osxapp, filename):
     # Ignore command name which is raised at app launch (python opening main script).
     if filename == sys.argv[0]:
         return True
     from deluge.ui.gtkui.ipcinterface import process_args
     process_args([filename])
コード例 #14
0
ファイル: mainwindow.py プロジェクト: cheuschober/deluge
 def on_drag_data_received_event(self, widget, drag_context, x, y, selection_data, info, timestamp):
     args = []
     for uri in selection_data.data.split():
         args.append(urllib.unquote(uri))
     process_args(args)
     drag_context.finish(True, True)