title: Button generating (wx.Python, Python)
body: <p>I am developing a wxpython, i am looking for button generating, for example.</p>
  
  <ol>
  <li><p>In text box enter the value how many button have to generate.</p></li>
  <li><p>While submitting that, i have to show in panel as many as button</p></li>
  </ol>
  
  
  
  <pre><code>def __init__(self):
      wx.Frame.__init__(self, None, wx.ID_ANY, "Background Reset Tutorial",size=wx.Size(500,500))
  
      # Add a panel so it looks the correct on all platforms
      self.panel = wx.Panel(self, wx.ID_ANY)
      self.txt = wx.TextCtrl(self.panel,id=wx.ID_ANY,pos=(185,40))
      txtSizer = wx.BoxSizer(wx.HORIZONTAL)
  
  
      self.btn = wx.Button(self.panel,id=wx.ID_ANY,label="Submit",pos= 
                 (190,70),size=(100,30))
      self.btn.Bind(wx.EVT_BUTTON,self.onSubmit)
  def onSubmit(self,event):
      gettxt = self.txt.GetValue()
  </code></pre>