title: How to make buttons in OpenCV 3.1 using cv2.createButton?
body: <p>I'm trying to add a button to my image processing script to save the high and low HSV values for my binary threshold.</p>
  
  <p>According to the OpenCV 3.0 documentation <a href="http://docs.opencv.org/3.0-beta/modules/highgui/doc/qt_new_functions.html#createbutton" rel="noreferrer">here</a>, OpenCV evidently has a function which does that.</p>
  
  <p>I am writing the function like this<br>
  <code>cv2.createButton('Button',f)</code><br>
  Where <code>Button</code> is the name of the button and <code>f</code> is the callback function (just an empty function)</p>
  
  <p>However I keep on getting:-</p>
  
  <blockquote>
    <p>AttributeError: 'module' object has no attribute 'createButton'</p>
  </blockquote>
  
  <p>Apparently the same function works fine with C/C++ but it isn't working with python. Most probably because it isn't there for python (maybe) ?</p>
  
  <p>How do I get around this problem?</p>