Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.93 KB | None | 0 0
  1.  
  2.     def excessXruns(self):
  3.         ask = QMessageBox.question(self, self.tr("Excessive Xruns"), self.tr("Cadence has detected a high amount of xruns. Would you like to reconfigure JACK?"),
  4.           QMessageBox.Yes|QMessageBox.No, QMessageBox.No)
  5.         if (ask == QMessageBox.Yes):
  6.       ask_r = CustomMessageBox(self, QMessageBox.Warning, self.tr("Warning"),
  7.                   self.tr("This will stop JACK!<br>Make sure to save your projects and exit ALL applications using JACK."),
  8.                   self.tr("Are you sure you want to stop JACK?"))
  9.           if (ask_r != QMessageBox.No):
  10.         self.JackServerStop()
  11.             jack_configure(self)
  12.  
  13.     def setXruns(self, xruns):
  14.     # Check if there are excessive xruns
  15.     if (xruns == 50):
  16.       str_xruns = str(xruns)
  17.       self.excessXruns()
  18.         elif (xruns >= 0):
  19.           str_xruns = str(xruns)
  20.         else:
  21.           str_xruns = "---"
  22.  
  23.         self.l_xruns.setText(str_xruns)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement