1.2.1: change deb package too
This commit is contained in:
@@ -52,6 +52,9 @@ def ButtonClick7():
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def ButtonClick8():
|
def ButtonClick8():
|
||||||
|
if combobox3.get() is "":
|
||||||
|
messagebox.showerror(title="提示", message="信息没有填写完整,无法继续卸载 APK")
|
||||||
|
return
|
||||||
DisabledAndEnbled(True)
|
DisabledAndEnbled(True)
|
||||||
if os.path.exists(combobox3.get()):
|
if os.path.exists(combobox3.get()):
|
||||||
path = GetApkPackageName(combobox3.get())
|
path = GetApkPackageName(combobox3.get())
|
||||||
@@ -96,7 +99,7 @@ def InstallApk(path, quit = False):
|
|||||||
if quit:
|
if quit:
|
||||||
print(commandReturn)
|
print(commandReturn)
|
||||||
return
|
return
|
||||||
messagebox.showinfo(title="提示", message=commandReturn)
|
messagebox.showinfo(title="提示", message="操作完成!")
|
||||||
findApkHistory.append(combobox1.get())
|
findApkHistory.append(combobox1.get())
|
||||||
combobox1['value'] = findApkHistory
|
combobox1['value'] = findApkHistory
|
||||||
write_txt(get_home() + "/.config/uengine-runner/FindApkHistory.json", str(json.dumps(ListToDictionary(findApkHistory)))) # 将历史记录的数组转换为字典并写入
|
write_txt(get_home() + "/.config/uengine-runner/FindApkHistory.json", str(json.dumps(ListToDictionary(findApkHistory)))) # 将历史记录的数组转换为字典并写入
|
||||||
@@ -115,8 +118,8 @@ def DisabledAndEnbled(choose):
|
|||||||
#button4.configure(state=a)
|
#button4.configure(state=a)
|
||||||
button5.configure(state=a)
|
button5.configure(state=a)
|
||||||
#button6.configure(state=a)
|
#button6.configure(state=a)
|
||||||
#button7.configure(state=a)
|
button7.configure(state=a)
|
||||||
#button8.configure(state=a)
|
button8.configure(state=a)
|
||||||
|
|
||||||
# 需引入 subprocess
|
# 需引入 subprocess
|
||||||
def GetCommandReturn(cmd):
|
def GetCommandReturn(cmd):
|
||||||
|
|||||||
9
main.py
9
main.py
@@ -52,6 +52,9 @@ def ButtonClick7():
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def ButtonClick8():
|
def ButtonClick8():
|
||||||
|
if combobox3.get() is "":
|
||||||
|
messagebox.showerror(title="提示", message="信息没有填写完整,无法继续卸载 APK")
|
||||||
|
return
|
||||||
DisabledAndEnbled(True)
|
DisabledAndEnbled(True)
|
||||||
if os.path.exists(combobox3.get()):
|
if os.path.exists(combobox3.get()):
|
||||||
path = GetApkPackageName(combobox3.get())
|
path = GetApkPackageName(combobox3.get())
|
||||||
@@ -96,7 +99,7 @@ def InstallApk(path, quit = False):
|
|||||||
if quit:
|
if quit:
|
||||||
print(commandReturn)
|
print(commandReturn)
|
||||||
return
|
return
|
||||||
messagebox.showinfo(title="提示", message=commandReturn)
|
messagebox.showinfo(title="提示", message="操作完成!")
|
||||||
findApkHistory.append(combobox1.get())
|
findApkHistory.append(combobox1.get())
|
||||||
combobox1['value'] = findApkHistory
|
combobox1['value'] = findApkHistory
|
||||||
write_txt(get_home() + "/.config/uengine-runner/FindApkHistory.json", str(json.dumps(ListToDictionary(findApkHistory)))) # 将历史记录的数组转换为字典并写入
|
write_txt(get_home() + "/.config/uengine-runner/FindApkHistory.json", str(json.dumps(ListToDictionary(findApkHistory)))) # 将历史记录的数组转换为字典并写入
|
||||||
@@ -115,8 +118,8 @@ def DisabledAndEnbled(choose):
|
|||||||
#button4.configure(state=a)
|
#button4.configure(state=a)
|
||||||
button5.configure(state=a)
|
button5.configure(state=a)
|
||||||
#button6.configure(state=a)
|
#button6.configure(state=a)
|
||||||
#button7.configure(state=a)
|
button7.configure(state=a)
|
||||||
#button8.configure(state=a)
|
button8.configure(state=a)
|
||||||
|
|
||||||
# 需引入 subprocess
|
# 需引入 subprocess
|
||||||
def GetCommandReturn(cmd):
|
def GetCommandReturn(cmd):
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user