From 6cf43dd3d874e63885ead16b1d41586eff9d8bfb Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 13 Feb 2010 16:22:35 +0000 Subject: [PATCH] Track options svn: r14353 --- src/gen/plug/_gramplet.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/gen/plug/_gramplet.py b/src/gen/plug/_gramplet.py index 0e38ee7ff..533c55265 100644 --- a/src/gen/plug/_gramplet.py +++ b/src/gen/plug/_gramplet.py @@ -32,6 +32,7 @@ class Gramplet(object): Internal constructor for non-graphical gramplets. """ self._idle_id = 0 + self.track = [] self.active = False self.dirty = True self._pause = False @@ -377,20 +378,10 @@ class Gramplet(object): """ from PluginUtils import make_gui_option widget, label = make_gui_option( - option, self.dbstate, self.uistate, []) + option, self.dbstate, self.uistate, self.track) self.option_dict.update({option.get_label(): [widget, option]}) self.option_order.append(option.get_label()) - def get_gui_option(self, label): - """ - Reconstruct a deleted widget. - """ - from PluginUtils import make_gui_option - dummy, option = self.option_dict[label] - widget, label = make_gui_option( - option, self.dbstate, self.uistate, []) - return widget - def save_update_options(self, obj): """ Save a gramplet's options to file.