Пример #1
0
def main():
  logging.config.fileConfig('logging.conf')

  discovery = Discovery(
    discard_timestamps=args.discard_timestamps,
    correct_timestamps=args.correct_timestamps
  )

  analysis = Analysis(discovery)
  ui = Application(discovery)

  discovery.start()
  analysis.start()
  ui.start()
Пример #2
0
def main():
    # create sounds dir if it not exists
    create_sound_dir()

    # initialize UI and BG
    tasks = Queue()
    settings = init_settings()
    handler = TaskHandler(tasks, settings)
    app = Application(tasks, settings)

    # initialize processes
    handler.start()
    app.start()

    # stop BG process when UI is closed
    handler.stop()
Пример #3
0
def main():
    root = Tk()
    app = Application(root)
    app.start()