def askopenfilename(self):
filename= tkFileDialog.askopenfilename(initialdir='C:/..',title='Select File' , filetypes=[('Bitmap Images', '*.bmp'),('Png Images', '*.png'),('Gif Images', '*.gif'),("Jpeg","*.jpg"),("All files", "*")])
self.image = Image.open(filename)
self.photo = ImageTk.PhotoImage(self.image)
self.label = Label(self.photo)
def encode_files(self,image,data):
#get the image file
image = Image.open(self.photo)
#get message from entry box
data= self.data_entry
self.encoded = LSBSteg.encode(image, data)
La 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.