-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathgui.py
More file actions
29 lines (23 loc) · 760 Bytes
/
Copy pathgui.py
File metadata and controls
29 lines (23 loc) · 760 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
#!/usr/bin/env python
# coding: utf-8
import multiprocessing
from core.GUI_Welcome import RplGenStudioWelcome
def show_welcome(conn):
welcome = RplGenStudioWelcome(conn)
pass
if __name__ == '__main__':
# 多进程的支持
multiprocessing.freeze_support()
# 多进程启动welcome
parent_conn, child_conn = multiprocessing.Pipe()
show_welcome_process = multiprocessing.Process(target=show_welcome,args=(child_conn,))
show_welcome_process.start()
# 再初始化 MainWindow
from core.GUI_MainWindow import RplGenStudioMainWindow
# 等待
# show_welcome_process.join()
parent_conn.send('terminate')
show_welcome_process.join()
# gui的入口
root = RplGenStudioMainWindow()
root.mainloop()