def run_contacts_tab(self, c):
        if c == 10 and self.wallet.addressbook:
            out = self.run_popup('Adress', ["Copy", "Pay to", "Edit label", "Delete"]).get('button')
            address = self.wallet.addressbook[len(self.wallet.addressbook)%self.pos]
            if out == "Pay to":
                self.tab = 1
                self.str_recipient = address 
                self.pos = 2
            elif out == "Edit label":
                s = self.get_string(6 + self.pos, 18)
                if s:
                    self.wallet.labels[address] = s
dataset/ETHPy150Open bitxbay/BitXBay/electru/build/lib/electrum_gui/text.py/ElectrumGui.run_contacts_tab/swapped operands of `%`