  import tkinter as tk
  
  from tkinter import ttk
  
  from .control_helper import ControlPanel
  from .tooltip import Tooltip
  from .utils import get_config, get_images
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  POPUP = dict()
 
</s> remove # We store Tooltips globally when they are created
# Because we need to add them back to newly cloned widgets
_TOOLTIPS = dict()

# We store commands globally when they are created
# Because we need to add them back to newly cloned widgets
_COMMANDS = dict()
 </s> add # We store Tooltips, ContextMenus and Commands globally when they are created
# Because we need to add them back to newly cloned widgets (they are not easily accessible from
# original config or are prone to getting destroyed when the original widget is destroyed)
_RECREATE_OBJECTS = dict(tooltips=dict(), commands=dict(), contextmenus=dict()) </s> remove 
    Currently only setup for config items
 </s> add     This should only be called from the ControlPanel class </s> remove             val = _COMMANDS[val] if key == "command" and val != "" else val
 </s> add             val = _RECREATE_OBJECTS["commands"][val] if key == "command" and val != "" else val
from .control_helper import ControlPanel, ControlPanelOption
  import tkinter as tk
  
  from tkinter import ttk
  
from .control_helper import ControlPanel, ControlPanelOption
  from .tooltip import Tooltip
  from .utils import get_config, get_images
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  POPUP = dict()
keep keep keep keep replace keep keep keep keep keep
 GUI Fixups

- GUI Bugfix: Startup options - fix min/max thresholds
- GUI Bugfix: Make console read-only
- GUI Bugfix: Rightclick menu for recreated widgets
- Enhancement: Create ControlPanelOptions Class + migrate options 
lib/gui/popup_configure.py