update window code and update function picture

newBranch
bettleChen 1 year ago
parent 5e9fa516ad
commit 87cf7dcd28

@ -1,7 +1,6 @@
import pymysql import pymysql
# 创建mysql连接
conn = pymysql.connect(user="root", password="cyh0110", host="127.0.0.1", port=3306)
def create_database(): def create_database():
cursor = conn.cursor() # 创建游标 cursor = conn.cursor() # 创建游标
cursor.execute("DROP DATABASE IF EXISTS SCT") cursor.execute("DROP DATABASE IF EXISTS SCT")
@ -49,8 +48,9 @@ def create_table():
""") """)
cursor.close() cursor.close()
conn.close() # 关闭链接
if __name__ == '__main__': if __name__ == '__main__':
conn = pymysql.connect(user="root", password="cyh0110", host="127.0.0.1", port=3306)
create_database() create_database()
create_table() create_table()
conn.close() # 关闭链接

@ -297,8 +297,9 @@ if __name__ == '__main__':
(screenheight - root_attr['height']) / 2) (screenheight - root_attr['height']) / 2)
root.geometry(alignstr) root.geometry(alignstr)
root.resizable(width=False, height=False) root.resizable(width=False, height=False)
output = GraphvizOutput() output = GraphvizOutput(font_size=30)
output.output_file = "basic.png" output.output_file = "basic.png"
output.group_font_size = 40
config = Config() config = Config()
config.trace_filter = GlobbingFilter(include=[ config.trace_filter = GlobbingFilter(include=[
'StuSys_X4.*', 'StuSys_X4.*',

Binary file not shown.
Loading…
Cancel
Save