calling a variable from a function into another function Programming Software Development by varshaholla …Image.ANTIALIAS) tkimage = ImageTk.PhotoImage(resized) myvar = Label(win, image=tkimage) myvar.image = tkimage myvar.grid(…open(img) tkimage = ImageTk.PhotoImage(im) myvar1 = Label(win, image=tkimage) myvar1.image = tkimage myvar1.grid(row… using image from the label and processing it using tkinter Programming Software Development by varshaholla …) G_mean1.append(G) R_mean1.append(R) im = skimage.io.imread(tkimage, as_grey=True) im = skimage.img_as_ubyte(im) im /= 32 g = skimage…() but its giving me an error like: imge = cv2.imread(tkimage) TypeError: expected string or Unicode object, instance found how to… displaying the values in text box using tkinter Programming Software Development by varshaholla …(path) im = Image.open(path) tkimage = ImageTk.PhotoImage(im) myvar=Label(root,image = tkimage) myvar.image = tkimage myvar.pack() myvar.place(x = 100… Re: calling a variable from a function into another function Programming Software Development by Schol-R-LEA Can you please post the code you are using to call each of the three functions, and especially the section where the error is arising? Also, who originally wrote this code? It involves some moderately sophisticated techniques, and look it over, I would expect that anyone who knows enough Python (and programming in general) t write these functions … Re: calling a variable from a function into another function Programming Software Development by woooee I don't see the error line in the code you posted either, but in any case in the line im = Image.open(resizelist[val]) resizelist is used to to store images throughout the code and not the file names which are necessary for Image.open(). A simple print statement should help you understand the problem, so if you print val, type(resizelist[… Re: using image from the label and processing it using tkinter Programming Software Development by Gribouillis Read the doc ! [Apparently](http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html#cv2.imread) `cv2.imread()` expects a filename. Re: using image from the label and processing it using tkinter Programming Software Development by vegaseat Maybe this will help ... # pick images you have in the working directory # or give full path image1 = tk.PhotoImage(file='Farm.gif') # create a label to display the image label = tk.Label(root, image=image1, relief='raised', bd=10) label.grid(row=1, column=1) # save label image from garbage collection!… Re: displaying the values in text box using tkinter Programming Software Development by rrashkin It seems this, `blue = IntVar()`, defines "blue". I've had poor results trying to use any widget's textvariable in Tkinter (as opposed to Tk). I think you would need to explicitly set the variable, blue, in the entry widget, blue_text, `app.blue_text.insert(0,blue)` (I think that's the right syntax). Re: displaying the values in text box using tkinter Programming Software Development by woooee You use the variable name "blue" in two different places.