trying to resolve _translate undefined
This commit is contained in:
parent
8db60e788c
commit
7fb20468a8
|
@ -52,6 +52,14 @@ import proofofwork
|
|||
# For each stream to which we connect, several outgoingSynSender threads
|
||||
# will exist and will collectively create 8 connections with peers.
|
||||
|
||||
try:
|
||||
from PyQt4 import QtCore, QtGui
|
||||
_encoding = QtGui.QApplication.UnicodeUTF8
|
||||
def _translate(context, text):
|
||||
return QtGui.QApplication.translate(context, text)
|
||||
except AttributeError:
|
||||
print 'Error message:', err
|
||||
|
||||
|
||||
class outgoingSynSender(threading.Thread):
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user