old_contents: import tkinter as tk
  import tk_tools
  import random
  
  root = tk.Tk()
  
  entry_grid = tk_tools.EntryGrid(root, 3, ['L0', 'L1', 'L2'])
  entry_grid.grid(row=0, column=0)
  
  
  def add_row():
      entry_grid.add_row()
  
  
  def add_with_data():
      data = [random.randint(0, 10) for _ in range(3)]
      entry_grid.add_row(data=data)
  
  
  def remove_row():
      entry_grid.remove_row(0)
  
  
  def read():
      print(entry_grid.read(as_dicts=False))
  
  
  add_row_btn = tk.Button(text='Add Row', command=add_row)
  add_row_btn.grid(row=1, column=0, sticky='EW')
  
  add_row_data_btn = tk.Button(text='Add Row (with data)', command=add_with_data)
  add_row_data_btn.grid(row=2, column=0, sticky='EW')
  
  remove_row_btn = tk.Button(text='Remove Row', command=remove_row)
  remove_row_btn.grid(row=3, column=0, sticky='EW')
  
  read_btn = tk.Button(text='Read', command=read)
  read_btn.grid(row=4, column=0, sticky='EW')
  
  root.mainloop()
  
new_contents: import tkinter as tk
  import tk_tools
  import random
  
  
  def add_row():
      entry_grid.add_row()
  
  
  def add_with_data():
      data = [random.randint(0, 10) for _ in range(3)]
      entry_grid.add_row(data=data)
  
  
  def remove_row():
      entry_grid.remove_row(0)
  
  
  def read():
      print(entry_grid.read(as_dicts=False))
  
  
  if __name__ == '__main__':
  
      root = tk.Tk()
  
      entry_grid = tk_tools.EntryGrid(root, 3, ['L0', 'L1', 'L2'])
      entry_grid.grid(row=0, column=0)
  
      add_row_btn = tk.Button(text='Add Row', command=add_row)
      add_row_btn.grid(row=1, column=0, sticky='EW')
  
      add_row_data_btn = tk.Button(text='Add Row (with data)', command=add_with_data)
      add_row_data_btn.grid(row=2, column=0, sticky='EW')
  
      remove_row_btn = tk.Button(text='Remove Row', command=remove_row)
      remove_row_btn.grid(row=3, column=0, sticky='EW')
  
      read_btn = tk.Button(text='Read', command=read)
      read_btn.grid(row=4, column=0, sticky='EW')
  
      root.mainloop()
  
subject: add if __name__ == '__main__':