removed wrong imports

This commit is contained in:
ingvar1995 2016-02-27 19:37:58 +03:00
parent d0e4091c39
commit 4e17f27231
2 changed files with 2 additions and 4 deletions

View file

@ -1,4 +1,3 @@
from util import string_to_bin
import random import random
@ -7,7 +6,7 @@ class Node(object):
self._ip, self._port, self._tox_key, self.rand = ip, port, tox_key, rand self._ip, self._port, self._tox_key, self.rand = ip, port, tox_key, rand
def get_data(self): def get_data(self):
return self._ip, self._port, string_to_bin(self._tox_key) return self._ip, self._port, self._tox_key
def node_generator(): def node_generator():

View file

@ -1,6 +1,5 @@
from PySide import QtCore, QtGui from PySide import QtCore, QtGui
from settings import Settings from settings import Settings
from util import bin_to_string
class AddContact(QtGui.QWidget): class AddContact(QtGui.QWidget):
@ -103,7 +102,7 @@ class ProfileSettings(QtGui.QWidget):
font.setBold(True) font.setBold(True)
self.tox_id.setFont(font) self.tox_id.setFont(font)
self.tox_id.setObjectName("tox_id") self.tox_id.setObjectName("tox_id")
s = bin_to_string(self.tox.self_get_address().value) s = self.tox.self_get_address()
self.tox_id.setText(s) self.tox_id.setText(s)
self.copyId = QtGui.QPushButton(self) self.copyId = QtGui.QPushButton(self)
self.copyId.setGeometry(QtCore.QRect(40, 250, 98, 31)) self.copyId.setGeometry(QtCore.QRect(40, 250, 98, 31))