# Path: ui/TooltipEntry.py
# class TooltipEntry(Entry):
#     def __init__(self, parent, *args, **kw):
#         Entry.__init__(self, parent, *args, **kw)
# 
#         self.tooltip = Tooltip2(self, waittime=0, text='', bg='white')  #, pad=(0, 0, 0, 0))
# 
#     def showTooltip(self, text=None, pos=None):
#         self.tooltip.show(text, pos)
# 
#     def hideTooltip(self):
#         self.tooltip.hide()
# 
#     def destroy(self):
#         self.tooltip.hide()
#         super().destroy()
# 
# TIP_BELOW = 'below'


from tkinter.ttk import Treeview, Entry, Combobox
from tkinter.constants import *
from ui.TooltipEntry import TooltipEntry, TIP_BELOW
    from tkinter import Tk
    from tkinter.constants import *
import re
        if not selected:
            children = self.get_children()
            if not children:
                return  # empty tree
            start_iid = children[0]
        else:
            start_iid = selected[0]

        search_text = re.escape(search_text)

        if find_next:
            start_iid = self._get_next(start_iid)

        # print('start ID: ', start_iid)
        curr_iid = start_iid

        while True:
            text = self.item(curr_iid, 'text')
            # print(text)
            if re.search(search_text, text, re.IGNORECASE):
                self.selection_set(curr_iid)
                self.see(curr_iid)
                break

            curr_iid = self._get_next(curr_iid)

            if curr_iid == start_iid:
                break

    def _get_next(self, curr_iid):

# Path: ui/TooltipEntry.py
# class TooltipEntry(Entry):
#     def __init__(self, parent, *args, **kw):
#         Entry.__init__(self, parent, *args, **kw)
# 
#         self.tooltip = Tooltip2(self, waittime=0, text='', bg='white')  #, pad=(0, 0, 0, 0))
# 
#     def showTooltip(self, text=None, pos=None):
#         self.tooltip.show(text, pos)
# 
#     def hideTooltip(self):
#         self.tooltip.hide()
# 
#     def destroy(self):
#         self.tooltip.hide()
#         super().destroy()
# 
# TIP_BELOW = 'below'


# Path: ui/MyTreeview.py
from tkinter.ttk import Treeview, Entry, Combobox
from tkinter.constants import *
from ui.TooltipEntry import TooltipEntry, TIP_BELOW
    from tkinter import Tk
    from tkinter.constants import *
import re

        if not selected:
            children = self.get_children()
            if not children:
                return  # empty tree
            start_iid = children[0]
        else:
            start_iid = selected[0]

        search_text = re.escape(search_text)

        if find_next:
            start_iid = self._get_next(start_iid)

        # print('start ID: ', start_iid)
        curr_iid = start_iid

        while True:
            text = self.item(curr_iid, 'text')
            # print(text)
            if re.search(search_text, text, re.IGNORECASE):
                self.selection_set(curr_iid)
                self.see(curr_iid)
                break

            curr_iid = self._get_next(curr_iid)

            if curr_iid == start_iid:
                break

    def _get_next(self, curr_iid):

        children = self.get_children(curr_iid)