title: WX library Rect
body: <p>I am in the middle of using OpenCV along with the WXLibrary to create a Rect object for image processing.</p>
  
  <p>Here is our code
      for contour in contours:</p>
  
  <pre><code>       #print cv2.boundingRect(contour)
         #rec = Rect(a)
         a= cv2.boundingRect(contour)
         rec = wx.Rect(a)
  </code></pre>
  
  <p>and our error is:</p>
  
  <pre><code>  traceback (most recent call last):
    File "/home/pi/Desktop/OpenCV(c++).py", line 149, in &lt;module&gt;
  processImage()
     File "/home/pi/Desktop/OpenCV(c++).py", line 101, in processImage
     rec = wx.Rect(a)
   File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py",          line 1145, in __init__
     _core_.Rect_swiginit(self,_core_.new_Rect(*args, **kwargs))
  TypeError: in method 'new_Rect', expected argument 1 of type 'int'
  </code></pre>
  
  <p>Syntax-wise, it seems fine. What is the issue?</p>