Skip to content

Commit

Permalink
fix open file bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dyxcloud committed Jul 19, 2019
1 parent bfcc727 commit 96de7d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions guistarter.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def __init__(self, master=None):

def doupload(self, event=None):
local_file_path = filedialog.askopenfilename(title='上传', filetypes=[('image', '*.jpg;*.jpeg;*.png;*.gif;*.ico;*.bmp;*.webp'), ('All Files', '*')])
if local_file_path=="":
return
self.copytext.set("making...")
checkdata = self.Combo1.get()
checkindex = self.Combo1List.index(checkdata)
Expand Down

0 comments on commit 96de7d8

Please sign in to comment.