[Tutor] Auto Refresh

2009-02-28 Thread Hi
2009 01:00:21 - > From: "Alan Gauld" > Subject: Re: [Tutor] Auto Refresh > To: tutor@python.org > Message-ID: > Content-Type: text/plain; format=flowed; charset="iso-8859-1"; >reply-type=original > > > "Hi" wrote > > > > In

Re: [Tutor] Auto Refresh

2009-02-27 Thread Alan Gauld
"Hi" wrote In my main GUI: def refresh(self, event): x = refresh_var() value = wx.StaticText(self, -1, str(x.var_rate)) Its not clear how you are positioning Static Text, I suspect you need it as a opart of your main GUI and then reference it in here and use the SetLabel() method to update

Re: [Tutor] Auto Refresh

2009-02-27 Thread Hi
I am trying to read a value in a variable from a different class every time I click on a refresh button for my GUI program. The problem is I am using statictext so when I refresh, it displays the new value on top of the old one. In my main GUI: def refresh(self, event): x = refresh_var() value =