Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhemvrot authored Dec 26, 2022
1 parent 1367f14 commit ceb653a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ZLib DC.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def Compress(self):
newfilename = filename.replace('.txt', '')
z = open(newfilename, "ab")
print("Compressed String")
z.write(zlib.compress(f))
z.write(zlib.compress(f, level=9))
tk.messagebox.showinfo(title='Success!', message='File compressed successfully!')

def Decompress(self):
Expand All @@ -75,6 +75,5 @@ def About(self):
root = Tk()
root.resizable(False, False)
window = Window(root)
root.iconbitmap('icon.ico')
root.title(u'ZLib DC')
root.mainloop()

0 comments on commit ceb653a

Please sign in to comment.