Created
June 13, 2019 11:27
-
-
Save darosior/ab0510070a3d3ebff4dba14b19181e64 to your computer and use it in GitHub Desktop.
lightning-qt without plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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