Move all resources (locale, images, html, version.txt) into central resources dir, and clean up logic to find absolute paths to resources

This commit is contained in:
Micah Lee 2016-04-12 15:14:02 -07:00
parent 7c18d77fb2
commit e81f809882
34 changed files with 59 additions and 137 deletions

View file

@ -22,8 +22,6 @@ from PyQt5 import QtCore, QtWidgets, QtGui
from onionshare import strings, helpers
from . import common
class FileList(QtWidgets.QListWidget):
"""
The list of files and folders in the GUI.
@ -49,7 +47,7 @@ class FileList(QtWidgets.QListWidget):
self.setAlignment(QtCore.Qt.AlignCenter)
if image:
self.setPixmap(QtGui.QPixmap.fromImage(QtGui.QImage(common.get_image_path('drop_files.png'))))
self.setPixmap(QtGui.QPixmap.fromImage(QtGui.QImage(helpers.get_resource_path('images/drop_files.png'))))
else:
self.setText(strings._('gui_drag_and_drop', True))
self.setStyleSheet('color: #999999;')