Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 9 results for
tkimage
- Page 1
calling a variable from a function into another function
Programming
Software Development
10 Years Ago
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
10 Years Ago
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
10 Years Ago
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
10 Years Ago
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
10 Years Ago
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
10 Years Ago
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
10 Years Ago
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
10 Years Ago
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
10 Years Ago
by woooee
You use the variable name "blue" in two different places.
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC