def __init__(self, username, password, alipayPassword, userPayMap): AutoAction.__init__(self) self.username = username self.password = password self.alipayPassword = alipayPassword self.userPayMap = userPayMap self.view = None self.items = []
def __init__(self, keyword, username, password, alipayPassword, max_acceptable_price, seller_payment, message_to_seller): AutoAction.__init__(self) self.keyword = keyword self.username = username self.password = password self.alipayPassword = alipayPassword self.max_acceptable_price = max_acceptable_price self.seller_payment = seller_payment self.message_to_seller = message_to_seller self.queue = Queue(MaxPaiThreadNum) self.channel = thread_util.Channel() self.alipayChannel = thread_util.Channel() # allow only one alipay page at a time. self.alipayChannel.startConsumer(1)
def termintateAll(self, tabWidget): self.channel.stopConsumer() self.alipayChannel.stopConsumer() AutoAction.termintateAll(self, tabWidget)