title: Tkinter display other windows
body: <p>Is it possible to display a window which has been made by OpenCV using Tkinter? I want to open it using Tkinter so that I can provide more GUI functions. Has this been done before? I checked google and SO itself but did not find anything.</p>
  
  <p>So as kobejohn suggested, I am attaching the code for the camera capture and display.</p>
  
  <pre><code>import cv2
  import urllib 
  import numpy as np
  import subprocess
  
  stream=urllib.urlopen('IP Address')
  bytes=''
  while True:
      bytes+=stream.read(1024)
      a = bytes.find('\xff\xd8')
      b = bytes.find('\xff\xd9')
      if a!=-1 and b!=-1:
          jpg = bytes[a:b+2]
          bytes= bytes[b+2:]
          i = cv2.imdecode(np.fromstring(jpg, dtype=np.uint8),cv2.CV_LOAD_IMAGE_COLOR)
          cv2.imshow('i',i)
          if cv2.waitKey(1) ==27:
              exit(0)
  </code></pre>