title: Check the type of user input against known type
body: <p>I have a situation.</p>
  
  <p>I am using wx.textctrl where user needs only to enter a number (positive integers only).
  I want to check what the user has entered .
  If he has entered a string , i want to do something like this:</p>
  
  <pre><code>if type(user_input) == str:
      # do something
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>if type(user_input) != int:               
      # do something
  </code></pre>
  
  <p>Actual program looks like </p>
  
  <pre><code>ROW = self.Rownum.GetValue()
  </code></pre>
  
  <p>I want to check the type of this <code>ROW</code> against string or integer.
  Or best will be , if I can force the textctrl box only to accept integers within a range
  suppose 1 to 10000 for example.</p>