python - How could i blink text in listbox -


this question has answer here:

how make blinking text on listbox item

import tkinter  window = tkinter.tk()  ncbox = tkinter.listbox(window, width=14, height=7, fg="blue", font=("helvetica", 20)) ncbox.grid(row=2, column=2,columnspan=4,sticky=nw) ncbox.insert("apple") ncbox.insert("banana") ncbox.insert("grape") 

now want blink apple on listbox. how that?

you should try following if want iterate on lines in listbox. can't directly check string listbox.

ncbox.get(first, last=none)  

if still doesn't work got to:

http://www.tutorialspoint.com/python/tk_listbox.htm

http://zetcode.com/gui/tkinter/widgets/

http://effbot.org/tkinterbook/listbox.htm


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -