From 5bd64c9e64158c348f398ded0cc0566bdcdb118a Mon Sep 17 00:00:00 2001
From: gfdgd_xi <3025613752@qq.com>
Date: Fri, 15 Jul 2022 23:33:24 +0800
Subject: [PATCH] =?UTF-8?q?1.7.0=E7=9A=84=E5=88=9D=E6=AD=A5=E5=8A=9F?=
 =?UTF-8?q?=E8=83=BD=E5=AE=9E=E7=8E=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 RunVM.sh       |  8 ++++++++
 StartVM.sh     | 22 ++++++++++++++++++++++
 demo1.py       |  3 +--
 main-newgui.py |  6 +++---
 main.py        |  4 ++--
 5 files changed, 36 insertions(+), 7 deletions(-)
 create mode 100755 StartVM.sh

diff --git a/RunVM.sh b/RunVM.sh
index 5b1ef68..b9f44a7 100755
--- a/RunVM.sh
+++ b/RunVM.sh
@@ -1,4 +1,12 @@
 #!/bin/bash
+# 使用系统默认的 bash 运行
+###########################################################################################
+# 作者:gfdgd xi、为什么您不喜欢熊出没和阿布呢
+# 版本:1.7.0
+# 更新时间:2022年07月15日
+# 感谢:感谢 wine 以及 deepin-wine 团队,提供了 wine 和 deepin-wine 给大家使用,让我能做这个程序
+# 基于 Python3 的 tkinter 构建
+###########################################################################################
 cd `dirname $0`
 which VBoxManage
 if test $? == 0 ; then
diff --git a/StartVM.sh b/StartVM.sh
new file mode 100755
index 0000000..d1a7c77
--- /dev/null
+++ b/StartVM.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+# 使用系统默认的 bash 运行
+###########################################################################################
+# 作者:gfdgd xi、为什么您不喜欢熊出没和阿布呢
+# 版本:1.7.0
+# 更新时间:2022年07月15日
+# 感谢:感谢 wine 以及 deepin-wine 团队,提供了 wine 和 deepin-wine 给大家使用,让我能做这个程序
+# 基于 Python3 的 tkinter 构建
+###########################################################################################
+VBoxManage showvminfo Windows
+if test 0 == $?; then
+    # 检测到虚拟机存在,启动虚拟机
+    VBoxManage startvm Windows
+    exit
+fi
+zenity --question --no-wrap --text="检查到您未创建所指定的虚拟机,是否创建虚拟机并继续?\n如果不创建将无法使用"
+if test 1 == $?; then
+    # 用户不想创建虚拟机,结束
+    exit
+fi
+cd `dirname $0`
+./VM/VirtualMachine
\ No newline at end of file
diff --git a/demo1.py b/demo1.py
index 9a6054f..f24c458 100644
--- a/demo1.py
+++ b/demo1.py
@@ -3,10 +3,9 @@ from tkinter import ttk
 
 root = tk.Tk()
 root.title("wine运行器1.6.0")
-#root.geometry("1275x900")
+root.geometry("1275x900")
 
 frame_up = tk.Frame(root)
-
 frame_left = tk.Frame(frame_up)#快速启动区
 frame_left.config(bd=30)
 #
diff --git a/main-newgui.py b/main-newgui.py
index cd7bb5b..2fc3bf3 100755
--- a/main-newgui.py
+++ b/main-newgui.py
@@ -940,7 +940,7 @@ label_l_1 = ttk.Label(frame_left_2,text="请选择容器的路径:")
 label_l_1.config(font=("幼圆",16))
 label_l_1.grid(row=0,column=0,sticky='w')
 ##
-e1 = ttk.Combobox(frame_left_2, width=50)
+e1 = ttk.Combobox(frame_left_2, width=65)
 e1.grid(row=1,column=0)
 ##
 button1 = tk.Button(frame_left_2,text="浏览", command=liulanbutton)
@@ -954,7 +954,7 @@ label_l_2 = ttk.Label(frame_left_3,text="请选择待执行程序:")
 label_l_2.config(font=("幼圆",16))
 label_l_2.grid(row=0,column=0,sticky='w')
 ##
-e2 = ttk.Combobox(frame_left_3, width=50)
+e2 = ttk.Combobox(frame_left_3, width=65)
 e2.grid(row=1,column=0)
 ##
 button2 = tk.Button(frame_left_3,text="浏览", command=liulanexebutton)
@@ -1013,7 +1013,7 @@ label_r_2 = ttk.Label(frame_right_3,text="名称:")
 label_r_2.config(font=("幼圆",14))
 label_r_2.grid(row=0,column=0)
 ##
-combobox1 = ttk.Combobox(frame_right_3,width=15)
+combobox1 = ttk.Combobox(frame_right_3,width=20)
 combobox1.grid(row=0,column=1)
 ##
 empty1 = ttk.Label(frame_right_3,text=" "*5)
diff --git a/main.py b/main.py
index 47bd896..5814b65 100755
--- a/main.py
+++ b/main.py
@@ -2,8 +2,8 @@
 # 使用系统默认的 python3 运行
 ###########################################################################################
 # 作者:gfdgd xi、为什么您不喜欢熊出没和阿布呢
-# 版本:1.6.1
-# 更新时间:2022年07月11日
+# 版本:1.7.0
+# 更新时间:2022年07月15日
 # 感谢:感谢 wine 以及 deepin-wine 团队,提供了 wine 和 deepin-wine 给大家使用,让我能做这个程序
 # 基于 Python3 的 tkinter 构建
 ###########################################################################################