Skip to content

Instantly share code, notes, and snippets.

@darosior
Created June 13, 2019 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darosior/ab0510070a3d3ebff4dba14b19181e64 to your computer and use it in GitHub Desktop.
Save darosior/ab0510070a3d3ebff4dba14b19181e64 to your computer and use it in GitHub Desktop.
lightning-qt without plugin
#!/usr/bin/env python3
import os
from lightning import LightningRpc, Plugin, RpcError
from PyQt5.QtWidgets import QApplication, QWidget, QMainWindow
from mainWindow import MainWindow
def gui():
"""Launches the Qt GUI"""
app = QApplication([])
win = QMainWindow()
win.show()
return "Succesfully stopped lightning-qt" if not app.exec_() else "An error occured"
if __name__ == "__main__":
gui()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment