__init__.py 413 B

123456789101112131415161718192021
  1. #!/usr/bin/env python3
  2. from lyberry_api import LBRY_Api
  3. import sys
  4. from PyQt5 import QtWidgets
  5. from lyberry_qt.qt_window import MainWindow
  6. lbry = LBRY_Api()
  7. def main():
  8. app = QtWidgets.QApplication(sys.argv)
  9. url = None
  10. if len(sys.argv) > 1:
  11. url = sys.argv[-1]
  12. window = MainWindow(lbry, start_url = url)
  13. window.show()
  14. sys.exit(app.exec_())
  15. if __name__ == '__main__':
  16. main()