MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / on_action_SetAvatar

Method on_action_SetAvatar

src/bitmessageqt/__init__.py:3698–3705  ·  view source on GitHub ↗
(self, thisTableWidget)

Source from the content-addressed store, hash-verified

3696 self.on_action_SetAvatar(self.ui.tableWidgetAddressBook)
3697
3698 def on_action_SetAvatar(self, thisTableWidget):
3699 currentRow = thisTableWidget.currentRow()
3700 addressAtCurrentRow = thisTableWidget.item(
3701 currentRow, 1).text()
3702 setToIdenticon = not self.setAvatar(addressAtCurrentRow)
3703 if setToIdenticon:
3704 thisTableWidget.item(
3705 currentRow, 0).setIcon(avatarize(addressAtCurrentRow))
3706
3707 def setAvatar(self, addressAtCurrentRow):
3708 if not os.path.exists(state.appdata + 'avatars/'):

Calls 2

setAvatarMethod · 0.95
avatarizeFunction · 0.90

Tested by

no test coverage detected