docstr: Creates modified toolbar with only a find textbox and match modification.
  
  Args:
      parent: parent widget (the gui) is required to access the current
              DataFrame shown to the user.
docstr_tok: ["Creates","modified","toolbar","with","only","a","find","textbox","and","match","modification",".","Args",":","parent",":","parent","widget","(","the","gui",")","is","required","to","access","the","current","DataFrame","shown","to","the","user","."]
code: def __init__(self, parent=None):
      """
      Creates modified toolbar with only a find textbox and match modification.
  
      Args:
          parent: parent widget (the gui) is required to access the current
                  DataFrame shown to the user.
      """
      super().__init__(parent=parent)
  
      # global variable initialization
      self.findThread = None
      # List of model QModelIndexes for indexes where a match was found
      self.search_matches = []
      # Current QModelIndex
      self.search_selection = None
      self.match_flags = {
          "regex": False,
          "case": False,
          "whole word": False,
      }
      self.image_folder = "../resources/images"
  
      # main toolbar widget
      find_toolbar_widget = QtWidgets.QWidget()
      find_toolbar_layout = QtWidgets.QHBoxLayout()
      find_toolbar_layout.setContentsMargins(0, 0, 0, 0)
      find_toolbar_layout.setSpacing(0)
      find_toolbar_widget.setLayout(find_toolbar_layout)
  
      # textedit portion of toolbar
      self.find_textbox = ButtonLineEdit(content_margins=(0, 0, 5, 0))
      self.find_textbox.setPlaceholderText("Find")
      self.find_textbox.textChanged.connect(self.query)
  
      ####################
      # add match modification
  
      # add match case button
      match_case_icon_raw_path = (
          self.image_folder + "/case-sensitive.svg"
      )
      match_case_icon_path = pkg_resources.resource_filename(
          __name__, match_case_icon_raw_path
      )
      match_case_icon = QtGui.QIcon(match_case_icon_path)
      self.match_case_button = QtWidgets.QToolButton(self.find_textbox)
      self.match_case_button.setIcon(match_case_icon)
      self.match_case_button.setToolTip("Match Case")
      self.match_case_button.setCursor(Qt.PointingHandCursor)
      self.match_case_button.setCheckable(True)
      self.match_case_button.clicked.connect(self.toggle_match_case)
      self.find_textbox.add_button(self.match_case_button)
  
      # add match regex button
      regex_icon_raw_path = self.image_folder + "/regex.svg"
      regex_icon_path = pkg_resources.resource_filename(
          __name__, regex_icon_raw_path
      )
      regex_icon = QtGui.QIcon(regex_icon_path)
      self.match_regex_button = QtWidgets.QToolButton(self.find_textbox)
      self.match_regex_button.setIcon(regex_icon)
      self.match_regex_button.setToolTip("Use Regular Expression")
      self.match_regex_button.setCursor(Qt.PointingHandCursor)
      self.match_regex_button.setCheckable(True)
      self.match_regex_button.clicked.connect(self.toggle_regex)
      self.find_textbox.add_button(self.match_regex_button)
  
      # add match exactly button
      match_exactly_icon_raw_path = (
          self.image_folder + "/match-exactly.svg"
      )
      match_exactly_icon_path = pkg_resources.resource_filename(
          __name__, match_exactly_icon_raw_path
      )
      whole_word_icon = QtGui.QIcon(match_exactly_icon_path)
      self.match_exactly_button = QtWidgets.QToolButton(
          self.find_textbox
      )
      self.match_exactly_button.setIcon(whole_word_icon)
      self.match_exactly_button.setToolTip("Match Exactly")
      self.match_exactly_button.setCursor(Qt.PointingHandCursor)
      self.match_exactly_button.setCheckable(True)
      self.match_exactly_button.clicked.connect(
          self.toggle_match_exactly
      )
      self.find_textbox.add_button(self.match_exactly_button)
      find_toolbar_layout.addWidget(self.find_textbox)
  
      self.matches_found_label = QtWidgets.QLabel("Matches Found: 0")
      self.matches_found_label.setContentsMargins(0, 0, 7, 0)
      find_toolbar_layout.addWidget(self.matches_found_label)
  
      ####################
      # Main toolbar buttons
  
      # go to next match
      previous_match_button = QtWidgets.QPushButton()
      up_arrow_icon_raw_path = self.image_folder + "/arrow-up.svg"
      up_arrow_icon_path = pkg_resources.resource_filename(
          __name__, up_arrow_icon_raw_path
      )
      up_arrow_icon = QtGui.QIcon(up_arrow_icon_path)
      previous_match_button.setIcon(up_arrow_icon)
      previous_match_button.setToolTip("Previous match")
      previous_match_button.clicked.connect(self.select_previous_match)
      find_toolbar_layout.addWidget(previous_match_button)
  
      # go to previous match
      next_match_button = QtWidgets.QPushButton()
      down_arrow_icon_raw_path = self.image_folder + "/arrow-down.svg"
      down_arrow_icon_path = pkg_resources.resource_filename(
          __name__, down_arrow_icon_raw_path
      )
      down_arrow_icon = QtGui.QIcon(down_arrow_icon_path)
      next_match_button.setIcon(down_arrow_icon)
      next_match_button.setToolTip("Next match")
      next_match_button.clicked.connect(self.select_next_match)
      find_toolbar_layout.addWidget(next_match_button)
  
      # close find toolbar
      close_find_button = QtWidgets.QPushButton()
      cancel_icon_raw_path = self.image_folder + "/close.svg"
      cancel_icon_path = pkg_resources.resource_filename(
          __name__, cancel_icon_raw_path
      )
      close_icon = QtGui.QIcon(cancel_icon_path)
      close_find_button.setIcon(close_icon)
      close_find_button.setToolTip("Close Find Bar")
      close_find_button.clicked.connect(self.hide_find_bar)
      find_toolbar_layout.addWidget(close_find_button)
  
      self.addWidget(find_toolbar_widget)
  
      # hide toolbar
      self.setFixedHeight(0)
  
imports: import re
  import time
  import pkg_resources
  from PyQt5 import QtCore, QtGui, QtWidgets
  from PyQt5.QtCore import Qt
label_desc: Use image node_id 1 to create a new FindToolbar object from inherited base classes: QtWidgets with example: obj = FindToolbar(parent)