def askThemeCreation(self):
msg = QtWidgets.QMessageBox()
msg.setIcon(QtWidgets.QMessageBox.Warning)
newtheme=self.themeCmb.currentText()+' - '+self.panel+' Transparent'
msg.setText("Would you like to create theme <b>"+newtheme+"</b> ?")
msg.setWindowTitle("Create Theme Confirmation")
msg.setStandardButtons(QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No)
retval = msg.exec_()
if retval == QtWidgets.QMessageBox.Yes:
command = 'python transparentpanel.py "'+self.themeCmb.currentText()+'" '+self.panel
for shad in self.shadows:
command = command + " " +shad
os.system(str(command))
self.updateThemeCmb(newtheme)
msg2 = QtWidgets.QMessageBox()
msg2.setIcon(QtWidgets.QMessageBox.Information)
msg2.setText("Your new theme was created and you can activate it through Plasma System Settings")
msg2.setWindowTitle("New Theme Created")
msg2.setStandardButtons(QtWidgets.QMessageBox.Ok)
retval2 = msg2.exec_()
评论列表
文章目录