Update main.py

上级 147210cb
......@@ -30,10 +30,10 @@ def New_file(screen,file_imarge,file_x,file_y,file_text,text_x,text_y,text_color
screen.blit(file_imarge,(file_x,file_y))
screen.blit(file_text,(text_x,text_y))
return None
def New_button(event,):
pass
def New_button(screen,event,button_imarge,button_x,button_y,text,text_x,text_y,text_color,text_S,text_font):
New_file(screen,button_imarge,button_x,button_y,text,text_x,text_y,text_color,text_S,text_font)
def Opensys(a):
with open(a) as files:
with open(a,encoding='UTF-8') as files:
file = files.readlines()
title = file[0].rstrip()
title_x,title_y = int(file[1].rstrip()),int(file[2].rstrip())
......@@ -60,4 +60,3 @@ t_First = threading.Thread(target = first_window)
t_First.start()
t_First.join()
pygame.quit()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册