This repository has been archived by the owner on Aug 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
executable file
·53 lines (44 loc) · 1.64 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env python3
# Copyright (C)2019 Lynnesbian (https://fedi.lynnesbian.space/@lynnesbian)
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
import sys, faulthandler
from PySide2.QtWidgets import QApplication, QMainWindow
from PySide2.QtCore import QFile, Slot
import PySide2.QtCore as QtCore
import webbrowser
from FediBooks.functions import *
from FediBooks.uic.ui_mainmenu import Ui_MainMenu
from FediBooks.wzd_createbot import wzdCreateBot
faulthandler.enable()
class MainMenu(QMainWindow):
def __init__(self):
super(MainMenu, self).__init__()
self.ui = Ui_MainMenu()
self.ui.setupUi(self)
@Slot()
def on_btn_botmanager_pressed(self):
print("bot manager")
@Slot()
def on_btn_settings_pressed(self):
print("settings")
@Slot()
def on_btn_donate_pressed(self):
open_url("https://github.com/Lynnesbian/FediBooks/tree/master/README.md#Donations")
@Slot()
def on_btn_quit_pressed(self):
print("quit")
if __name__ == "__main__":
app = QApplication(sys.argv)
# window = MainMenu()
window = wzdCreateBot()
window.show()
sys.exit(app.exec_())