mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-15 06:45:48 +00:00
add support of debug to widget
This commit is contained in:
@ -27,6 +27,14 @@ from PyQt4 import uic
|
||||
class AppearanceWindow(QWidget):
|
||||
def __init__(self, parent):
|
||||
"""settings window definition"""
|
||||
# debug
|
||||
environment = QProcessEnvironment.systemEnvironment()
|
||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
||||
if (debugEnv == QString("yes")):
|
||||
self.debug = True
|
||||
else:
|
||||
self.debug = False
|
||||
# main
|
||||
QWidget.__init__(self)
|
||||
self.ui = uic.loadUi(parent.package().filePath('ui', 'appearance.ui'), self)
|
||||
self.parent = parent
|
||||
|
Reference in New Issue
Block a user