menu update, test update
This commit is contained in:
parent
98aa10b7e0
commit
4957d7ce09
2 changed files with 11 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
from PySide import QtCore, QtGui
|
||||
from settings import Settings
|
||||
from util import bin_to_string
|
||||
|
||||
|
||||
class AddContact(QtGui.QWidget):
|
||||
|
@ -102,8 +103,7 @@ class ProfileSettings(QtGui.QWidget):
|
|||
font.setBold(True)
|
||||
self.tox_id.setFont(font)
|
||||
self.tox_id.setObjectName("tox_id")
|
||||
# TODO: copy TOX ID to self.tox_id
|
||||
s = 'ID'
|
||||
s = bin_to_string(self.tox.self_get_address().value)
|
||||
self.tox_id.setText(s)
|
||||
self.copyId = QtGui.QPushButton(self)
|
||||
self.copyId.setGeometry(QtCore.QRect(40, 250, 98, 31))
|
||||
|
@ -133,7 +133,7 @@ class ProfileSettings(QtGui.QWidget):
|
|||
|
||||
def copy(self):
|
||||
clipboard = QtGui.QApplication.clipboard()
|
||||
id = unicode(self.tox.self_get_public_key())
|
||||
id = bin_to_string(self.tox.self_get_address().value)
|
||||
clipboard.setText(id)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue