title: Deleting widgets from pyqt
body: <pre><code>class Window(QtGui.QMainWindow):
    def __init__(self):
      super(Window, self).__init__()
      self.tabs()
  
    def home(self):
      df = QtGui.QPushButton('hello', self)
      df.show()
  
    def series(self):
      df = QtGui.QCheckBox('hello', self)
      df.show()   
  
    def tabs(self):
      btn_home = QtGui.QPushButton(QtGui.QIcon('home.png'), 'Home', self)
      btn_home.clicked.connect(self.home)
  
      btn_series = QtGui.QPushButton(QtGui.QIcon('series.png'),'Series', self)
      btn_series.clicked.connect(self.series)
  
      self.show()
  
  def run():
      app = QtGui.QApplication(sys.argv)
      GUI = Window()
      sys.exit(app.exec_())
  
  if __name__ == '__main__': run()
  </code></pre>
  
  <p>I wanted to delete the widgets shown from home module when i click series button and delete widgets from series module when i click home button.
  So far whats happening is when i click series button he previous widgets from home module are still there.</p>