Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def excessXruns(self):
- ask = QMessageBox.question(self, self.tr("Excessive Xruns"), self.tr("Cadence has detected a high amount of xruns. Would you like to reconfigure JACK?"),
- QMessageBox.Yes|QMessageBox.No, QMessageBox.No)
- if (ask == QMessageBox.Yes):
- ask_r = CustomMessageBox(self, QMessageBox.Warning, self.tr("Warning"),
- self.tr("This will stop JACK!<br>Make sure to save your projects and exit ALL applications using JACK."),
- self.tr("Are you sure you want to stop JACK?"))
- if (ask_r != QMessageBox.No):
- self.JackServerStop()
- jack_configure(self)
- def setXruns(self, xruns):
- # Check if there are excessive xruns
- if (xruns == 50):
- str_xruns = str(xruns)
- self.excessXruns()
- elif (xruns >= 0):
- str_xruns = str(xruns)
- else:
- str_xruns = "---"
- self.l_xruns.setText(str_xruns)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement