pimenu icon indicating copy to clipboard operation
pimenu copied to clipboard

Stringvar() definition

Open mano1979 opened this issue 4 years ago • 2 comments

Hi, thank you for a great job on this project!

I am adding some functions based on a button press which is coupled to a function. However, the entry field is not updated while typing, and so i need to reload the menu item to get the typed data in the variable. Now i read that using variable.set(entryInput) is the way to go to update this data on the fly. But for this to work i need to make the variable "StringVar()".

Here is the problem:

The pimenu code does not look like the Tkinter examples that i find online. I cannot find "import Tkinter as tk" in the pimenu code. And now i'm lost on how to define my Stringvar variables. I really could use your help with this.

mano1979 avatar Nov 22 '20 18:11 mano1979

Remove just 'tk.' at the begin of yours function and add at begin of script

from Tkinter import Entry

@mano1979

pi-dev500 avatar May 03 '21 07:05 pi-dev500

So here

tk.Tk()

=

Tk()

pi-dev500 avatar May 03 '21 08:05 pi-dev500