title: How do I run a program within a Tkinter frame?
body: <p>I'm trying to create a Tkinter app that incorporates the use of a touchscreen keyboard and will be run off a Raspberry Pi. I found an onscreen keyboard called Matchbox-keyboard.</p>
  
  <p>My question is: is there a way to "embed" this keyboard into a GUI created by Tkinter? I would like to embed the keyboard so it opens at the bottom of the parent window.</p>
  
  <p>So far all I can come up with is:</p>
  
  <pre><code>subprocess.Popen(['matchbox-keyboard'])
  </code></pre>
  
  <p>which works, but it opens in a separate window. </p>
  
  <p>Below is a sample of my code. Keep in mind that I haven't coded the <code>get()</code> functions for the text fields yet, or any of the other functions for that matter. </p>
  
  <pre><code>from tkinter import *
  from tkinter import ttk
  import subprocess
  
  process_one = subprocess.Popen(['matchbox-keyboard'])
  
  root = Tk()
  bottomframe = Frame(root)
  bottomframe.pack(side = BOTTOM)
  root.title("PinScore")
  L0 = Label(root, text = "Welcome to PinScore!")
  L0.pack(side = TOP)
  
  L1 = Label(root, text = "Initials:")
  L1.pack(side = LEFT)
  E1 = Entry(root, bd = 5)
  E1.pack(side = RIGHT)
  
  L2 = Label(root, text = "High Score:")
  L2.pack( side = RIGHT)
  E2 = Entry(root, bd = 5)
  E2.pack(side = RIGHT)
  
  B = Button(bottomframe, text = "Enter High Score")
  B.pack(side = BOTTOM)
  
  root.mainloop()
  </code></pre>