This repository has been archived by the owner on Sep 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmain.py
100 lines (74 loc) · 2.25 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import sys
import webbrowser
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from src.home import Ui_homeMainWindow
from src.kat import Ui_katMainWindow
from src.nyaa import Ui_nyaaMainWindow
from src.rarbg import Ui_rarbgMainWindow
from src.search import Ui_searchMainWindow
from src.tpb import Ui_tpbMainWindow
from src.x1377 import Ui_x1337MainWindow
class HomeWindow(QMainWindow):
def __init__(self):
super().__init__()
self.ui = Ui_homeMainWindow()
self.ui.setupUi(self)
def search(self):
self.SearchWindow = SearchWindow()
self.SearchWindow.show()
def x1377(self):
self.x1377Window = x1377Window()
self.x1377Window.show()
def kat(self):
self.katWindow = katWindow()
self.katWindow.show()
def nyaa(self):
self.nyaaWindow = nyaaWindow()
self.nyaaWindow.show()
def rarbg(self):
self.rarbgWindow = rarbgWindow()
self.rarbgWindow.show()
def tpb(self):
self.tpbWindow = tpbWindow()
self.tpbWindow.show()
def website(self):
webbrowser.open('http://eliasbenb.github.io/')
def github(self):
webbrowser.open('http://github.com/eliasbenb/MagnetMagnet')
class SearchWindow(QMainWindow):
def __init__(self):
super().__init__()
self.ui = Ui_searchMainWindow()
self.ui.setupUi(self)
class x1377Window(QMainWindow):
def __init__(self):
super().__init__()
self.ui = Ui_x1337MainWindow()
self.ui.setupUi(self)
class katWindow(QMainWindow):
def __init__(self):
super().__init__()
self.ui = Ui_katMainWindow()
self.ui.setupUi(self)
class nyaaWindow(QMainWindow):
def __init__(self):
super().__init__()
self.ui = Ui_nyaaMainWindow()
self.ui.setupUi(self)
class rarbgWindow(QMainWindow):
def __init__(self):
super().__init__()
self.ui = Ui_rarbgMainWindow()
self.ui.setupUi(self)
class tpbWindow(QMainWindow):
def __init__(self):
super().__init__()
self.ui = Ui_tpbMainWindow()
self.ui.setupUi(self)
if __name__ == '__main__':
app = QApplication(sys.argv)
w = HomeWindow()
w.show()
sys.exit(app.exec_())