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
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
def action(self, event = None): self.torrentmaker = TorrentMaker(self.utility.frame)
def action(self, event=None): self.torrentmaker = TorrentMaker(self.utility.frame)