diff --git a/pesterchum.py b/pesterchum.py index 2373216..fd084be 100644 --- a/pesterchum.py +++ b/pesterchum.py @@ -1372,9 +1372,14 @@ class PesterWindow(MovingWindow): else: m.sendtime() def paintEvent(self, event): - palette = QtGui.QPalette() - palette.setBrush(QtGui.QPalette.Window, QtGui.QBrush(self.backgroundImage)) - self.setPalette(palette) + try: + self.backgroundImage + except: + pass + else: + palette = QtGui.QPalette() + palette.setBrush(QtGui.QPalette.Window, QtGui.QBrush(self.backgroundImage)) + self.setPalette(palette) @QtCore.pyqtSlot() def closeToTray(self): diff --git a/setup.py b/setup.py index b3fdfb9..88de841 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,17 @@ includefiles = ["quirks", "PCskins.png", "Pesterchum.png"] build_exe_options = { - "includes": ["requests","urllib","pytwmn"], + "includes": ["PyQt5", + "pygame", + "feedparser", + "magic", + "ostools", + "requests", + "urllib", + "pytwmn", + "re", + "oyoyo", + "ssl"], "excludes": ["collections.sys", "collections._sre", "collections._json", @@ -33,7 +43,8 @@ build_exe_options = { "collections._struct", "collections.array", "collections._weakref"], - "include_files": includefiles + "include_files": includefiles, + "include_msvcr": True } bdist_mac_options = {