1.0.1——使用多线程

This commit is contained in:
gfdgd xi 2021-01-30 22:32:35 +08:00
parent cd6df5c706
commit 84322108ca
2 changed files with 12 additions and 2 deletions

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
##########################################################################################
# 作者gfdgd xi
# 版本1.0
# 版本1.0.1
# 感谢感谢星火商店Spark-Store团队提供了 spark-webapp-runtime 给大家使用,让我能做这个程序
# 基于 Python3 的 tkinter 构建的 spark-webapp-runtime 前端
##########################################################################################
@ -12,6 +12,7 @@ import tkinter as tk
import tkinter.filedialog
import tkinter.messagebox
import os
import threading
###################
# 程序所需事件
@ -50,6 +51,9 @@ def liulanico():
e3_text.set(path)
def start():
runs = threading.Thread(target = start_run)
runs.start()
def start_run():
os.system("spark-webapp-runtime -u '" + e1.get() + "' -i '" + e3_text.get() + "' -t '" + e2_text.get() + "' -d '" + e4_text.get() + "'")
# 获取用户主目录
@ -58,7 +62,7 @@ def get_home():
# 显示“关于这个程序”窗口
def about_this_program():
tkinter.messagebox.showinfo(title="关于这个程序",message="一个基于 Python3 的 tkinter 制作的 spark-webapp-runtime 运行器\n版本1.0\n适用平台Linux")
tkinter.messagebox.showinfo(title="关于这个程序",message="一个基于 Python3 的 tkinter 制作的 spark-webapp-runtime 运行器\n版本1.0.1\n适用平台Linux")
# 显示“提示”窗口
def helps():