Turn on thread page Beta
    • Thread Starter
    Offline

    0
    ReputationRep:
    I am having a problem with my Tkinter Program in computing.
    I am using stringvar() to allow me to create an automatically updating label which will update whenever I change the value of the stringvar().
    Unfortunately when I update the value of the StringVar() the label doesn't change.

    I was hoping someone could help me with this problem.

    Full Program: http://pastebin.com/3GhiK6ex
    Offline

    12
    ReputationRep:
    Hi,

    What I think the problem is is that your self.foo variable is defined in a different class.

    Instead of using controller.foo.get() try using ProgramScreen.foo.get() and tell me if that works
 
 
 
Reply
Submit reply
Turn on thread page Beta
Updated: January 30, 2017

2,705

students online now

800,000+

Exam discussions

Find your exam discussion here

Poll
Who is going to be the top scorer of the World Cup in 2018?

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reply
Hide
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.