-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgamelist.py
157 lines (143 loc) · 4 KB
/
gamelist.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
from tkinter import *
import sys
import os
import webbrowser
from datetime import datetime
import pandas as pd
from tkinter import messagebox
import gistyc
from tkinter.messagebox import askyesno
import xaim
import ofxo
import cmg
def myt():
webbrowser.open('https://youtube.com/playlist?list=PLht9SD0-LyQLGnW2bdHGIqf4Ni55PuoFx')
def img_resource_path(relative_path):
""" Get absolute path to resource, works for dev and for PyInstaller """
try:
# PyInstaller creates a temp folder and stores path in _MEIPASS
base_path = sys._MEIPASS
except Exception:
base_path = os.path.abspath(".")
return os.path.join(base_path, relative_path)
def btn_clicked():
print("Button Clicked")
def Close():
glist.destroy()
def forms():
webbrowser.open("https://forms.gle/VkHR9uCtkb4FYA6S8")
def discord():
webbrowser.open('https://discord.gg/QbWru2bFtf')
def triger1():
xaim.tttmp()
def triger2():
ofxo.ofaim()
def triger3():
cmg.cdgame()
def gmain():
global glist
glist = Toplevel()
glist.geometry("1280x720")
glist.overrideredirect(True)
glist.configure(bg = "#000000")
def center_screen():
global screen_height, screen_width, x_cordinate, y_cordinate
screen_width = glist.winfo_screenwidth()
screen_height = glist.winfo_screenheight()
x_cordinate = int((screen_width/2) - (1280/2))
y_cordinate = int((screen_height/2) - (720/2))
glist.geometry("{}x{}+{}+{}".format(1280,720, x_cordinate, y_cordinate))
center_screen()
canvas = Canvas(
glist,
bg = "#000000",
height = 720,
width = 1280,
bd = 0,
highlightthickness = 0,
relief = "ridge")
canvas.place(x = 0, y = 0)
background_img = PhotoImage(file =img_resource_path("glbg.png"))
background = canvas.create_image(
640.0, 358.5,
image=background_img)
img0 = PhotoImage(file =img_resource_path("exit.png"))
ext = Button(glist,
image = img0,
borderwidth = 0,
highlightthickness = 0,
command = Close,
relief = "flat")
ext.place(
x = 1174, y = 627,
width = 88,
height = 69)
ytim = PhotoImage(file = img_resource_path("nytb.png"))
ytb = Button(glist,
image = ytim,
borderwidth = 0,
highlightthickness = 0,
command = myt,
relief = "flat")
ytb.place(
x = 1183, y = 365,
width = 62,
height = 43)
img1 = PhotoImage(file =img_resource_path("mail.png"))
mail = Button(glist,
image = img1,
borderwidth = 0,
highlightthickness = 0,
command =forms,
relief = "flat")
mail.place(
x = 1174, y = 540,
width = 83,
height = 69)
img2 = PhotoImage(file =img_resource_path("discord.png"))
dis = Button(glist,
image = img2,
borderwidth = 0,
highlightthickness = 0,
command = discord,
relief = "flat")
dis.place(
x = 1167, y = 429,
width = 99,
height = 93)
img3 = PhotoImage(file =img_resource_path("ttton.png"))
tttmp = Button(glist,
image = img3,
borderwidth = 0,
highlightthickness = 0,
command = triger1,
relief = "flat")
tttmp.place(
x = 138, y = 283,
width = 400,
height = 61)
img4 = PhotoImage(file =img_resource_path("tttof.png"))
ttsp = Button(glist,
image = img4,
borderwidth = 0,
highlightthickness = 0,
command = triger2,
relief = "flat")
ttsp.place(
x = 138, y = 360,
width = 400,
height = 61)
img5 = PhotoImage(file =img_resource_path("cm.png"))
cm = Button(glist,
image = img5,
borderwidth = 0,
highlightthickness = 0,
command = triger3,
relief = "flat")
cm.place(
x = 146, y = 429,
width = 390,
height = 55)
glist.grab_set()
glist.resizable(False, False)
glist.mainloop()