123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424 |
- from multiprocessing import Process
- def painting_board():
- from CGB import draw_main
- draw_main()
- def Draw():
- global top, HTB
- HTB = Process(target=painting_board)
- HTB.start()
- def Data_Science():
- from Data_Science import machine_learning
- machine_learning()
- def SJKX():
- global top, SJ
- SJ = Process(target=Data_Science)
- SJ.start()
- def Function_mapping():
- from HSCH import function_mapping
- function_mapping()
- def Hsch():
- global top, CH
- CH = Process(target=Function_mapping)
- CH.start()
- def Function_factory():
- from HSCH import function_factory_main
- function_factory_main()
- def HSGC():
- global top, HsGC
- HsGC = Process(target=Function_factory)
- HsGC.start()
- def Algebraic_factory():
- from DSGC import algebraic_factory_main
- algebraic_factory_main()
- def Dsgc():
- global top, DsGC
- DsGC = Process(target=Algebraic_factory)
- DsGC.start()
- def Machine_Learning():
- from Machine_learning_analysis import machine_learning
- machine_learning()
- def MLA():
- global top, Mla
- Mla = Process(target=Machine_Learning)
- Mla.start()
- def Git_Ctrl():
- from Git_controller import git_main
- git_main()
- def GIT_Ctrl():
- global top, Git_Ctrl
- Git = Process(target=Git_Ctrl)
- Git.start()
- def Crawler_Main():
- from Crawler import crawler_main
- crawler_main()
- def Crawlef_Run():
- global top, crawlef
- crawlef = Process(target=Crawler_Main)
- crawlef.start()
- def Main():
- global top
- import tkinter
- import tkinter.font as tkFont
- from PIL import ImageTk, Image
- from New_TK import DragWindow
- print('加载完毕')
- top = DragWindow(alpha=0.97, width=1200, height=800)
- ft = tkFont.Font(family='Comic Sans MS', size=20, weight=tkFont.BOLD)
- ft1 = tkFont.Font(family='Comic Sans MS', size=16, weight=tkFont.BOLD)
- ft2 = tkFont.Font(family='Comic Sans MS', size=10)
- ft3 = tkFont.Font(family='Comic Sans MS', size=50, weight=tkFont.BOLD)
- top.title('')
- top.resizable(width=False, height=False)
- top.geometry(f'1200x800+30+30')
- # 渲染白色
- F1 = tkinter.Frame(top, width=1200, height=800, bg='#FFFFFF')
- F1.pack()
- # 图片
- canvas = tkinter.Canvas(
- F1,
- bd=0,
- width=1000,
- height=800,
- highlightthickness=0)
- photo = ImageTk.PhotoImage(Image.open('Pic/Night2.jpg'))
- canvas.create_image(500, 400, image=photo)
- canvas.grid(column=1, row=0, sticky=tkinter.S + tkinter.N, rowspan=20)
- abg = '#F0FFFF'
- bg = '#FFFFFF'
- bc = 'tcross'
- # 标题
- tkinter.Label(
- F1,
- text='CoTan~科学计算',
- width=20,
- bg='#FFFFFF',
- font=ft).grid(
- column=0,
- row=0,
- sticky=tkinter.N) # 设置说明
- tkinter.Label(
- F1,
- text='寄忆学术',
- bg=abg,
- font=ft1).grid(
- column=0,
- row=1,
- sticky=tkinter.W +
- tkinter.E)
- tkinter.Button(
- F1,
- text='我的寄忆',
- cursor=bc,
- height=2,
- font=ft2,
- bg=bg,
- activebackground=abg,
- bd=0,
- justify=tkinter.LEFT).grid(
- column=0,
- row=2,
- sticky=tkinter.N +
- tkinter.E +
- tkinter.W)
- tkinter.Button(
- F1,
- text='寄忆草稿版',
- cursor=bc,
- command=Draw,
- height=2,
- font=ft2,
- bg=bg,
- activebackground=abg,
- bd=0,
- justify=tkinter.LEFT).grid(
- column=0,
- row=3,
- sticky=tkinter.N +
- tkinter.E +
- tkinter.W)
- tkinter.Button(
- F1,
- text='自动化网页',
- cursor=bc,
- command=Crawlef_Run,
- height=1,
- font=ft2,
- bg=bg,
- activebackground=abg,
- bd=0,
- justify=tkinter.LEFT).grid(
- column=0,
- row=4,
- sticky=tkinter.N +
- tkinter.E +
- tkinter.W)
- tkinter.Button(
- F1,
- text='Git仓库控制器',
- cursor=bc,
- command=GIT_Ctrl,
- height=1,
- font=ft2,
- bg=bg,
- activebackground=abg,
- bd=0,
- justify=tkinter.LEFT).grid(
- column=0,
- row=5,
- sticky=tkinter.N +
- tkinter.E +
- tkinter.W)
- abg = '#FFFAFA'
- tkinter.Label(
- F1,
- text='数学系统',
- bg=abg,
- font=ft1).grid(
- column=0,
- row=6,
- sticky=tkinter.W +
- tkinter.E)
- tkinter.Button(
- F1,
- text='函数测绘',
- cursor=bc,
- command=Hsch,
- height=2,
- font=ft2,
- bg=bg,
- activebackground=abg,
- bd=0,
- justify=tkinter.LEFT).grid(
- column=0,
- row=7,
- sticky=tkinter.N +
- tkinter.E +
- tkinter.W)
- tkinter.Button(
- F1,
- text='函数工厂',
- cursor=bc,
- command=HSGC,
- height=2,
- font=ft2,
- bg=bg,
- activebackground=abg,
- bd=0,
- justify=tkinter.LEFT).grid(
- column=0,
- row=8,
- sticky=tkinter.N +
- tkinter.E +
- tkinter.W)
- tkinter.Button(
- F1,
- text='代数工厂',
- cursor=bc,
- command=Dsgc,
- height=2,
- font=ft2,
- bg=bg,
- activebackground=abg,
- bd=0,
- justify=tkinter.LEFT).grid(
- column=0,
- row=9,
- sticky=tkinter.N +
- tkinter.E +
- tkinter.W)
- tkinter.Button(
- F1,
- text='数据科学',
- cursor=bc,
- command=SJKX,
- height=1,
- font=ft2,
- bg=bg,
- activebackground=abg,
- bd=0,
- justify=tkinter.LEFT).grid(
- column=0,
- row=10,
- sticky=tkinter.N +
- tkinter.E +
- tkinter.W)
- tkinter.Button(
- F1,
- text='机器学习',
- cursor=bc,
- command=MLA,
- height=1,
- font=ft2,
- bg=bg,
- activebackground=abg,
- bd=0,
- justify=tkinter.LEFT).grid(
- column=0,
- row=11,
- sticky=tkinter.N +
- tkinter.E +
- tkinter.W)
- abg = '#F5FFFA'
- tkinter.Label(
- F1,
- text='物化系统',
- bg=abg,
- font=ft1).grid(
- column=0,
- row=12,
- sticky=tkinter.W +
- tkinter.E)
- tkinter.Button(
- F1,
- text='几何车间',
- cursor=bc,
- height=2,
- font=ft2,
- bg=bg,
- activebackground=abg,
- bd=0,
- justify=tkinter.LEFT).grid(
- column=0,
- row=13,
- sticky=tkinter.N +
- tkinter.E +
- tkinter.W)
- tkinter.Button(
- F1,
- text='物理车间',
- cursor=bc,
- height=2,
- font=ft2,
- bg=bg,
- activebackground=abg,
- bd=0,
- justify=tkinter.LEFT).grid(
- column=0,
- row=14,
- sticky=tkinter.N +
- tkinter.E +
- tkinter.W)
- tkinter.Button(
- F1,
- text='化学车间',
- cursor=bc,
- height=1,
- font=ft2,
- bg=bg,
- activebackground=abg,
- bd=0,
- justify=tkinter.LEFT).grid(
- column=0,
- row=15,
- sticky=tkinter.N +
- tkinter.E +
- tkinter.W)
- tkinter.Button(
- F1,
- text='实验室管理',
- cursor=bc,
- height=1,
- font=ft2,
- bg=bg,
- activebackground=abg,
- bd=0,
- justify=tkinter.LEFT).grid(
- column=0,
- row=16,
- sticky=tkinter.N +
- tkinter.E +
- tkinter.W)
- abg = '#F8F8FF'
- tkinter.Label(
- F1,
- text='其他工具',
- bg=abg,
- font=ft1).grid(
- column=0,
- row=17,
- sticky=tkinter.W +
- tkinter.E)
- tkinter.Button(
- F1,
- text='系统扩展',
- cursor=bc,
- height=1,
- font=ft2,
- bg=bg,
- activebackground=abg,
- bd=0,
- justify=tkinter.LEFT).grid(
- column=0,
- row=18,
- sticky=tkinter.N +
- tkinter.E +
- tkinter.W)
- tkinter.Button(
- F1,
- text='Tensorflew深度学习',
- cursor=bc,
- height=1,
- font=ft2,
- bg=bg,
- activebackground=abg,
- bd=0,
- justify=tkinter.LEFT).grid(
- column=0,
- row=19,
- sticky=tkinter.N +
- tkinter.E +
- tkinter.W)
- tkinter.Label(
- F1,
- text='',
- bg='#FFFFFF',
- font=ft1,
- height=5).grid(
- column=0,
- row=20,
- sticky=tkinter.W +
- tkinter.E)
- canvas.create_text(500, 750, text='CoTan~别来无恙', font=ft3, fill='#FFFFE0')
- top.mainloop()
- if __name__ == "__main__":
- Main()
|