예제 #1
0
파일: menubar.py 프로젝트: orther/Deluge
 def on_menuitem_edittrackers_activate(self, data=None):
     log.debug("on_menuitem_edittrackers_activate")
     from edittrackersdialog import EditTrackersDialog
     dialog = EditTrackersDialog(
         component.get("TorrentView").get_selected_torrent(),
         component.get("MainWindow").window)
     dialog.run()
예제 #2
0
 def on_menuitem_edittrackers_activate(self, data=None):
     log.debug("on_menuitem_edittrackers_activate")
     from edittrackersdialog import EditTrackersDialog
     dialog = EditTrackersDialog(
         component.get("TorrentView").get_selected_torrent(),
         component.get("MainWindow").window)
     dialog.run()
예제 #3
0
    def _on_button_edit_trackers_clicked(self, button):
        from edittrackersdialog import EditTrackersDialog
        dialog = EditTrackersDialog(
            self.prev_torrent_id,
            component.get("MainWindow").window)

        def on_response(result):
            if result:
                self.button_apply.set_sensitive(True)
        dialog.run().addCallback(on_response)
예제 #4
0
    def _on_button_edit_trackers_clicked(self, button):
        from edittrackersdialog import EditTrackersDialog
        dialog = EditTrackersDialog(self.prev_torrent_id,
                                    component.get("MainWindow").window)

        def on_response(result):
            if result:
                self.button_apply.set_sensitive(True)

        dialog.run().addCallback(on_response)
예제 #5
0
 def _on_button_edit_trackers_clicked(self, button):
     from edittrackersdialog import EditTrackersDialog
     dialog = EditTrackersDialog(
         self.prev_torrent_id,
         component.get("MainWindow").window)
     dialog.run()
예제 #6
0
 def _on_button_edit_trackers_clicked(self, button):
     from edittrackersdialog import EditTrackersDialog
     dialog = EditTrackersDialog(self.prev_torrent_id,
                                 component.get("MainWindow").window)
     dialog.run()