paths modified for apps landing in /opt/mozdefrag
This commit is contained in:
parent
ee612c44b1
commit
eae3b2c36d
4 changed files with 5 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,4 +2,5 @@
|
|||
backup/*
|
||||
deb/*
|
||||
__pycache__/*
|
||||
cp2opt.sh
|
||||
.remote-sync.json
|
||||
|
|
|
@ -19,7 +19,7 @@ from PyQt5.QtGui import *
|
|||
from PyQt5.QtWidgets import *
|
||||
|
||||
__appVer__ = "0.1 alpha"
|
||||
__currentDir__ = os.path.dirname(os.path.abspath(__file__))
|
||||
__appDir__ = "/opt/mozdefrag/"
|
||||
|
||||
|
||||
class Ui_mozDefragAboutWindow(QtWidgets.QMainWindow, # --- About -------------
|
||||
|
@ -67,11 +67,8 @@ class Ui_mozDefragMainWindow(QtWidgets.QMainWindow, # --- Main ---------------
|
|||
|
||||
def main(self):
|
||||
self.show()
|
||||
self.logo_header.setPixmap(QtGui.QPixmap(__currentDir__
|
||||
+ os.path.sep + "pic"
|
||||
+ os.path.sep + "logo_header.jpg"))
|
||||
icon = QtGui.QIcon()
|
||||
icon.addPixmap(QtGui.QPixmap(__currentDir__
|
||||
icon.addPixmap(QtGui.QPixmap(__appDir__
|
||||
+ os.path.sep + "pic"
|
||||
+ os.path.sep + "icon.svg"),
|
||||
QtGui.QIcon.Normal,
|
||||
|
|
|
@ -20,7 +20,7 @@ class Ui_MainWindow(object):
|
|||
self.logo_header = QtWidgets.QLabel(self.centralwidget)
|
||||
self.logo_header.setGeometry(QtCore.QRect(0, 0, 400, 115))
|
||||
self.logo_header.setText("")
|
||||
self.logo_header.setPixmap(QtGui.QPixmap("pic/logo_header.jpg"))
|
||||
self.logo_header.setPixmap(QtGui.QPixmap("/opt/mozdefrag/pic/logo_header.jpg"))
|
||||
self.logo_header.setObjectName("logo_header")
|
||||
self.aboutButton = QtWidgets.QPushButton(self.centralwidget)
|
||||
self.aboutButton.setGeometry(QtCore.QRect(10, 330, 112, 31))
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
<string/>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap>pic/logo_header.jpg</pixmap>
|
||||
<pixmap>/opt/mozdefrag/pic/logo_header.jpg</pixmap>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="aboutButton">
|
||||
|
|
Loading…
Reference in a new issue