Extra Options Page properly unloads now

This commit is contained in:
John 2015-07-09 17:38:22 +03:00
parent f6744b92d2
commit ff5e8c9852

View file

@ -195,6 +195,7 @@ class OptionsPage(ShtikerPage.ShtikerPage):
def exit(self):
self.optionsTabPage.exit()
self.codesTabPage.exit()
self.extraOptionsTabPage.exit()
ShtikerPage.ShtikerPage.exit(self)
@ -219,6 +220,10 @@ class OptionsPage(ShtikerPage.ShtikerPage):
self.codesTab.destroy()
self.codesTab = None
if self.extraOptionsTab is not None:
self.extraOptionsTab.destroy()
self.extraOptionsTab = None
ShtikerPage.ShtikerPage.unload(self)
def setMode(self, mode, updateAnyways=0):
@ -761,6 +766,7 @@ class ExtraOptionsTabPage(DirectFrame):
del self.cogInterface_label
self.cogInterface_toggleButton.destroy()
del self.cogInterface_toggleButton
self.destroyReportNotice()
def __doFov(self):
fov = self.fov_slider['value']