class_docstr: Example of integrating with Tkinter.
code: def __init__(self):
      self.ib = IB().connect()
      self.root = tk.Tk()
      self.root.protocol("WM_DELETE_WINDOW", self._onDeleteWindow)
      self.entry = tk.Entry(self.root, width=50)
      self.entry.insert(0, "Stock('TSLA', 'SMART', 'USD')")
      self.entry.grid()
      self.button = tk.Button(
          self.root, text="Get details", command=self.onButtonClick
      )
      self.button.grid()
      self.text = tk.Text(self.root)
      self.text.grid()
      self.loop = util.getLoop()
  
file_path: ib_insync/examples/tk.py
imports: import asyncio
  import tkinter
  from ib_insync import IB, util
  from ib_insync.contract import *
label_desc: Use image node_id 1 to create a new TkApp object  with example: obj = TkApp()