Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def main():
app = QtGui.QApplication(sys.argv)
print QtGui.QStyleFactory.keys()
nuke = Nuke()
nuke.show()
import qdarkstyle
app.setStyleSheet(qdarkstyle.load_stylesheet_pyside())
# styles = [u'Windows', u'WindowsXP', u'WindowsVista', u'Motif', u'CDE', u'Plastique', u'Cleanlooks']
QtGui.QApplication.setStyle(QtGui.QStyleFactory.create('Cleanlooks'))
# QtGui.QApplication.setStyle(QtGui.QStyleFactory.create('Plastique'))
app.exec_()
parent.layout().setContentsMargins(0,0,0,0)
parent = self.parentWidget().parentWidget().parentWidget().parentWidget()
parent.layout().setContentsMargins(0,0,0,0)
except:
pass
super(IDE, self).showEvent(event)
if __name__ == '__main__':
app = QtGui.QApplication(sys.argv)
ide = IDE()
try:
import qdarkstyle
app.setStyleSheet(qdarkstyle.load_stylesheet_pyside())
except ImportError:
qdarkstyledir = os.path.join(os.path.dirname(__file__), 'qdarkstyle')
if os.path.isdir(qdarkstyledir):
sys.path.append(qdarkstyledir)
import qdarkstyle
app.setStyleSheet(qdarkstyle.load_stylesheet_pyqt())
print('QDarkStyle not found')
ide.show()
app.exec_()