feat: added grum cli
This commit is contained in:
20
grum.py
Executable file → Normal file
20
grum.py
Executable file → Normal file
@ -1,19 +1,3 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
from PyQt5.QtWidgets import QApplication
|
||||
|
||||
from grum import ctrl_c
|
||||
from grum import theme
|
||||
from grum.mainwin import MainWindow
|
||||
|
||||
|
||||
app = QApplication(sys.argv)
|
||||
theme.apply(app)
|
||||
ctrl_c.setup(app)
|
||||
mw = MainWindow()
|
||||
mw.show()
|
||||
sys.exit(app.exec())
|
||||
|
||||
|
||||
from grum.cli import main
|
||||
|
||||
main()
|
||||
|
1
grum/cli/__init__.py
Normal file
1
grum/cli/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
from .grum import main
|
20
grum/cli/grum.py
Executable file
20
grum/cli/grum.py
Executable file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
|
||||
from PyQt5.QtWidgets import QApplication
|
||||
|
||||
from grum import ctrl_c, theme
|
||||
from grum.mainwin import MainWindow
|
||||
|
||||
|
||||
def main():
|
||||
app = QApplication(sys.argv)
|
||||
theme.apply(app)
|
||||
ctrl_c.setup(app)
|
||||
mw = MainWindow()
|
||||
mw.show()
|
||||
sys.exit(app.exec())
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user