This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2005年04月07日 21:01 by droun, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| tk.patch | asvetlov, 2012年03月12日 23:53 | review | ||
| Messages (4) | |||
|---|---|---|---|
| msg60719 - (view) | Author: Emil (droun) | Date: 2005年04月07日 21:01 | |
in class Variable the constructor uses self.set() to set the value of the variable. This makes it hard and in some cases impossible to make a speciallization of Variable that performs some operation after changing the value. It would be preferable to use Tkinter.Variable.set(self, self._default) example: class ViewChanger(Tkinter.StringVar) : def __init__(self, views) : self.views = views Tkinter.StringVar.__init__(self) def set(self, newview) : self.views.activate(newview) Tkinter.StringVar.set(newview) get() and everything else will use the normal StringVar ipementation, but when the value is changed, a new view is activated. At creation here the self.views varaible will be accessed, method activate() will be called, and it might not even be fully initiallized yet. This is the normal case if you want to supply a variable to a widget, where a variable change may update the widget. |
|||
| msg82174 - (view) | Author: Daniel Diniz (ajaksu2) * (Python triager) | Date: 2009年02月15日 22:16 | |
Code is still as described in trunk rev69546. |
|||
| msg155545 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2012年03月13日 00:47 | |
New changeset 79bb99ec2464 by Martin v. Löwis in branch 'default': Issue #1178863: Separate initialisation from setting when initializing http://hg.python.org/cpython/rev/79bb99ec2464 |
|||
| msg155633 - (view) | Author: Martin v. Löwis (loewis) * (Python committer) | Date: 2012年03月13日 16:44 | |
Thanks for the patch. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:10 | admin | set | github: 41826 |
| 2012年03月13日 16:44:59 | loewis | set | status: open -> closed resolution: fixed messages: + msg155633 |
| 2012年03月13日 00:47:47 | python-dev | set | nosy:
+ python-dev messages: + msg155545 |
| 2012年03月12日 23:54:04 | asvetlov | set | nosy:
+ asvetlov |
| 2012年03月12日 23:53:44 | asvetlov | set | files:
+ tk.patch keywords: + patch versions: + Python 3.3, - Python 3.2 |
| 2010年08月21日 13:41:19 | BreamoreBoy | set | assignee: loewis -> gpolo nosy: + gpolo versions: + Python 3.2, - Python 2.7 |
| 2009年02月15日 22:16:03 | ajaksu2 | set | nosy:
+ ajaksu2 stage: test needed type: enhancement messages: + msg82174 versions: + Python 2.7, - Python 2.4 |
| 2005年04月07日 21:01:52 | droun | create | |