-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
135 lines (126 loc) · 4.95 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#!/usr/bin/python3
#
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.uic import loadUi
from PyQt5.QtWebEngineWidgets import QWebEngineView
import sys
class Window(QMainWindow):
def __init__(self):
super(Window,self).__init__()
loadUi("page-ui.ui",self)
self.setWindowFlags(Qt.FramelessWindowHint)
self.setAttribute(Qt.WA_TranslucentBackground)
self.setWindowTitle("Sina Meysami")
self.setWindowIcon(QIcon("./Scr/mrprogrammer-logo.jpeg"))
self.web_.clicked.connect(self.website)
self.instagram_.clicked.connect(self.instagram)
self.facebook_.clicked.connect(self.facebook)
self.github_.clicked.connect(self.github)
self.linkedin_.clicked.connect(self.linkedin)
self.telegram_.clicked.connect(self.telegram)
self.twitter_.clicked.connect(self.twitter)
self.youtube_.clicked.connect(self.youtube)
self.zlink_.clicked.connect(self.zlink)
self.blacksoftware_.clicked.connect(self.blacksoftware)
self.exit_btn.clicked.connect(self.close)
def website(self):
win = QMainWindow(self)
win.setWindowTitle("Black-Webbrowser/My-Web")
win.setGeometry(500,100,800,700)
win.setFixedSize(800,700)
browser = QWebEngineView(self)
browser.setUrl(QUrl("https://mrprogrammer2938.github.io/mrprogrammer2938/"))
win.setCentralWidget(browser)
win.show()
def instagram(self):
win = QMainWindow(self)
win.setWindowTitle("Black-Webbrowser/Instagram")
win.setGeometry(500,100,800,700)
win.setFixedSize(800,700)
browser = QWebEngineView(self)
browser.setUrl(QUrl("https://instagram.com/black_software_company"))
win.setCentralWidget(browser)
win.show()
def github(self):
win = QMainWindow(self)
win.setWindowTitle("Black-Webbrowser/Github")
win.setGeometry(500,100,800,700)
win.setFixedSize(800,700)
browser = QWebEngineView(self)
browser.setUrl(QUrl("https://github.com/mrprogrammer2938"))
win.setCentralWidget(browser)
win.show()
def telegram(self):
win = QMainWindow(self)
win.setWindowTitle("Black-Webbrowser/Telegram")
win.setGeometry(500,100,800,700)
win.setFixedSize(800,700)
browser = QWebEngineView(self)
browser.setUrl(QUrl("https://t.me/blacksoftware3"))
win.setCentralWidget(browser)
win.show()
def twitter(self):
win = QMainWindow(self)
win.setWindowTitle("Black-Webbrowser/Twitter")
win.setGeometry(500,100,800,700)
win.setFixedSize(800,700)
browser = QWebEngineView(self)
browser.setUrl(QUrl("https://twitter.com/blacksoftware3"))
win.setCentralWidget(browser)
win.show()
def youtube(self):
win = QMainWindow(self)
win.setWindowTitle("Black-Webbrowser/YouTube")
win.setGeometry(500,100,800,700)
win.setFixedSize(800,700)
browser = QWebEngineView(self)
browser.setUrl(QUrl("https://www.youtube.com/channel/UCJNgrVc2NvEuMkASBa5AzLg"))
win.setCentralWidget(browser)
win.show()
def zlink(self):
win = QMainWindow(self)
win.setWindowTitle("Black-Webbrowser/Zlink")
win.setGeometry(500,100,800,700)
win.setFixedSize(800,700)
browser = QWebEngineView(self)
browser.setUrl(QUrl("https://zil.ink/blacksoftware"))
win.setCentralWidget(browser)
win.show()
def linkedin(self):
win = QMainWindow(self)
win.setWindowTitle("Black-Webbrowser/LinkedIn")
win.setGeometry(500,100,800,700)
win.setFixedSize(800,700)
browser = QWebEngineView(self)
browser.setUrl(QUrl("https://www.linkedin.com/in/black-software-608425226/"))
win.setCentralWidget(browser)
win.show()
def facebook(self):
win = QMainWindow(self)
win.setWindowTitle("Black-Webbrowser/Facebook")
win.setGeometry(500,100,800,700)
win.setFixedSize(800,700)
browser = QWebEngineView(self)
browser.setUrl(QUrl("https://www.facebook.com/profile.php?id=100076104841323"))
win.setCentralWidget(browser)
win.show()
def blacksoftware(self):
win = QMainWindow(self)
win.setWindowTitle("Black-Webbrowser/Black-Software")
win.setGeometry(500,100,800,700)
win.setFixedSize(800,700)
browser = QWebEngineView(self)
browser.setUrl(QUrl("https://github.com/mrprogrammer2938"))
win.setCentralWidget(browser)
win.show()
def main():
app = QApplication(sys.argv)
app.setApplicationName("Sina Meysami")
app.setApplicationVersion("v1.0")
window = Window()
window.show()
app.exec_()
if __name__ == '__main__':
main()