I would like to know how to flash the cursor on a tkinter.Text
object when I walk the application, because normally no widget is selected. I would like to have the same effect as a terminal when it is turned on, where the cursor is flashing.
This is the code I'm using, but it does not work:
self.prompt = tkinter.Text(self.root, bg=self.bg, fg=self.fg, insertbackground=self.fg)
self.prompt.insert(tkinter.END, self.PROMPT_M)
self.prompt.bind('<Return>', self.add_prompt)
self.prompt.pack()
self.prompt.focus()