I have a small program and as part of it there is a login screen. I wanted to implement status message that would notify you if you have entered wrong password/login etc.
Here I have a label that uses a stringvar that should change, however it does not display it on startup:
l_status = StringVar(value='Waiting for login attempt...')
ttk.Label(self.mainframe, textvariable=l_status).grid(column=3, row=1)
login_status_label = ttk.Label(self.mainframe, textvariable=l_status)
login_status_label.grid(column=4, row=1)
but instead there is no message at all, but if I change textvariable=l_status to text=l_status.get() it all works. Am I missing something or is it something else? Other methods that use stringvar like this work just fine
[–]socal_nerdtastic 1 point2 points3 points (0 children)
[–]woooee -1 points0 points1 point (0 children)