Hey there! Sign in to join this conversationNew here? Join for free
    • 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
 
 
 
  • See more of what you like on The Student Room

    You can personalise what you see on TSR. Tell us a little about yourself to get started.

  • Poll
    Would you like to hibernate through the winter months?
  • See more of what you like on The Student Room

    You can personalise what you see on TSR. Tell us a little about yourself to get started.

  • 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

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