mirror of
https://github.com/python/cpython.git
synced 2025-11-15 00:00:00 +00:00
Break circular reference on menus upon cleanup
This commit is contained in:
parent
64da169f43
commit
7b56aad2e1
1 changed files with 1 additions and 0 deletions
|
|
@ -446,6 +446,7 @@ class MenuBar:
|
||||||
def close(self):
|
def close(self):
|
||||||
self.parent = None
|
self.parent = None
|
||||||
self.bar = None
|
self.bar = None
|
||||||
|
self.menus = None
|
||||||
|
|
||||||
def addmenu(self, title, after = 0):
|
def addmenu(self, title, after = 0):
|
||||||
id = self.getnextid()
|
id = self.getnextid()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue