code: def main():
      
      logging.basicConfig(level=logging.DEBUG)
      # create the application and the main window
      app = QtWidgets.QApplication(sys.argv)
      window = QtWidgets.QMainWindow()
  
      # setup ui
      ui = example_ui.Ui_MainWindow()
      ui.setupUi(window)
      ui.bt_delay_popup.addActions([
          ui.actionAction,
          ui.actionAction_C
      ])
      ui.bt_instant_popup.addActions([
          ui.actionAction,
          ui.actionAction_C
      ])
      ui.bt_menu_button_popup.addActions([
          ui.actionAction,
          ui.actionAction_C
      ])
      window.setWindowTitle('QDarkGrayStyle example')
  
      # tabify dock widgets to show bug #6
      window.tabifyDockWidget(ui.dockWidget1, ui.dockWidget2)
  
      # setup stylesheet
      app.setStyleSheet(qdarkgraystyle.load_stylesheet())
  
      # auto quit after 2s when testing on travis-ci
      if '--travis' in sys.argv:
          QtCore.QTimer.singleShot(2000, app.exit)
  
      # run
      window.show()
      app.exec_()
docs: Application entry point