Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stringvar() definition #7

Open
mano1979 opened this issue Nov 22, 2020 · 2 comments
Open

Stringvar() definition #7

mano1979 opened this issue Nov 22, 2020 · 2 comments

Comments

@mano1979
Copy link

mano1979 commented Nov 22, 2020

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.

@pi-dev500
Copy link

pi-dev500 commented May 3, 2021

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

from Tkinter import Entry

@mano1979

@pi-dev500
Copy link

So here

tk.Tk()

=

Tk()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants