-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtkinterCheckGithub.py
More file actions
33 lines (28 loc) · 909 Bytes
/
tkinterCheckGithub.py
File metadata and controls
33 lines (28 loc) · 909 Bytes
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
from tkinter import *
import webbrowser as gb
class githuButton(Frame):
def __init__(self, master=None):
super().__init__(master)
self.master = master
self.pack()
self.pySefiGUI()
def pySefiGUI(self):
self.myGh = Frame(self, bg="black")
self.myGh.pack(expand=True,fill='both')
self.l2 = Label(self.myGh, text="☆developmentMen☆",
bg="black",fg="white").pack()
self.photo = PhotoImage(file=r"baner.png").subsample(
20,23)
self.ghButon = Button(self.myGh,highlightthickness=0,
text="Check my GitHub --->",
anchor="center",bg="black",activebackground=
"black",relief="flat",borderwidth=0,activeforeground=
"white",width=250,command=self.gitHub,
fg="white",image=self.photo,compound="right"
).pack()
def gitHub(self):
gb.open("https://github.com/developmentMen")
r = Tk()
r.wm_title("check my GitHub")
app = githuButton(r)
app.mainloop()