Re: how can a value be retrieved from an event loop?
Phil <[email protected]>
| Newsgroups | gmane.comp.python.tutor |
|---|---|
| Message-ID | <[email protected]> |
On 16/11/23 21:13, Alan Gauld wrote:de this is what I have done: > I'm slight confused by your terminology here. > A class is a template from which you create instances. > Instances present an API to which you can send "messages" > (aka call functions) Those functions are implemented > in the class definition but each instance offers them > independently. > > So I don't really understand what you mean by the class > returns values to the instance app? The class creates > an instance. The instances should return values. It's getting late and time for bed. Forget what I said about the class returning anything. What I'm trying to do is create a knob that works in the same fashion as the scale widget. I think I'm correct in saying that the scale is a class, or part of a widget class, and to use it I import scale (tk.Tk) into an app class. The scale's value is then available to be feed into a label, for instance. It seemed simple enough to create a knob class but I'm missing something. I just want to replace the scale with a knob. -- Regards, Phil _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor