def main():
    global pb
    pb = ProgressBar(title="Testing...", status="Testing 1, 2, 3...", pulsing = True, cancel_callback = stopCallback)
    pb.show()
    pb.hide()
    
    time.sleep(3)
    # Create the application and the main window
    app = QtGui.QApplication(sys.argv)
    window = TestDlg()
    
    # Run
    window.show()
    exit(app.exec_())
def main():
    global pb
    pb = ProgressBar(title="Microphone Data Collector", status="Starting...", pulsing = True)
    pb.show()
    pb.hide()
    pb.disableCancel()
    
    # Initialize terminal colors for Windows (and do nothing for *nix)
    colorama.init()
    
    # Create the application and the main window
    app = QtGui.QApplication(sys.argv)
    
    # Setup stylesheet
    app.setStyleSheet(qdarkstyle.load_stylesheet(pyside = False))
    
    window = MDCWindow()
    
    # Run
    window.show()
    sys.exit(app.exec_())
def main():
    global pb
    pb = ProgressBar(title="Microphone Data Collector",
                     status="Starting...",
                     pulsing=True)
    pb.show()
    pb.hide()
    pb.disableCancel()

    # Initialize terminal colors for Windows (and do nothing for *nix)
    colorama.init()

    # Create the application and the main window
    app = QtGui.QApplication(sys.argv)

    # Setup stylesheet
    app.setStyleSheet(qdarkstyle.load_stylesheet(pyside=False))

    window = MDCWindow()

    # Run
    window.show()
    sys.exit(app.exec_())