示例#1
0
class MakeTorrent(ABCAction):
    def __init__(self, utility):
        ABCAction.__init__(self, utility, menudesc='menucreatetorrent')

        self.torrentmaker = None

    def action(self, event=None):
        self.torrentmaker = TorrentMaker(self.utility.frame)

    def closeWin(self):
        try:
            if self.torrentmaker is not None:
                self.torrentmaker.closeWin()
        except wx.PyDeadObjectError:
            pass
示例#2
0
文件: other.py 项目: WoLpH/tribler
class MakeTorrent(ABCAction):
    def __init__(self, utility):
        ABCAction.__init__(self, 
                           utility, 
                           menudesc = 'menucreatetorrent')
                           
        self.torrentmaker = None
                           
    def action(self, event = None):
        self.torrentmaker = TorrentMaker(self.utility.frame)
        
    def closeWin(self):
        try:
            if self.torrentmaker is not None:
                self.torrentmaker.closeWin()
        except wx.PyDeadObjectError:
            pass
示例#3
0
文件: other.py 项目: WoLpH/tribler
 def action(self, event = None):
     self.torrentmaker = TorrentMaker(self.utility.frame)
示例#4
0
 def action(self, event=None):
     self.torrentmaker = TorrentMaker(self.utility.frame)