Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/bitmessagemain.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from SimpleXMLRPCServer import *
import json
import singleton
import os

# Classes
from class_sqlThread import *
Expand Down
34 changes: 17 additions & 17 deletions src/bitmessageqt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,6 @@
except:
pass

try:
from PyQt4 import QtCore, QtGui
from PyQt4.QtCore import *
from PyQt4.QtGui import *
except Exception as err:
print 'PyBitmessage requires PyQt unless you want to run it as a daemon and interact with it using the API. You can download it from http://www.riverbankcomputing.com/software/pyqt/download or by searching Google for \'PyQt Download\' (without quotes).'
print 'Error message:', err
sys.exit()

try:
_encoding = QtGui.QApplication.UnicodeUTF8
except AttributeError:
print 'QtGui.QApplication.UnicodeUTF8 error:', err

def _translate(context, text):
return QtGui.QApplication.translate(context, text)

withMessagingMenu = False
try:
from gi.repository import MessagingMenu
Expand Down Expand Up @@ -47,6 +30,23 @@ def _translate(context, text):
import pickle
import platform

try:
from PyQt4 import QtCore, QtGui
from PyQt4.QtCore import *
from PyQt4.QtGui import *
except Exception as err:
print 'PyBitmessage requires PyQt unless you want to run it as a daemon and interact with it using the API. You can download it from http://www.riverbankcomputing.com/software/pyqt/download or by searching Google for \'PyQt Download\' (without quotes).'
print 'Error message:', err
sys.exit()

try:
_encoding = QtGui.QApplication.UnicodeUTF8
except AttributeError:
print 'QtGui.QApplication.UnicodeUTF8 error:', err

def _translate(context, text):
return QtGui.QApplication.translate(context, text)


class MyForm(QtGui.QMainWindow):

Expand Down