title: How to delete QFrame in pyqt
body: <p>i try to build a software center GUI similar to ubuntu software center. I'm using pyqt. I created three QFrame object in my GUI. Each QFrame object has a different purpose, one for categories, one for top rated softwares, one for recommended softwares. These three frames are displayed on the main GUI screen. After searching a keyword , i want to show only one frame which contains results on the screen. Hence i need to delete the three frames when i clicked a button. I didn't find any information about deleting frames. </p>
  
  <p>All i found on the web is about deleting widgets from Layout. I already know and implemented this in one of my frames. In this frame , when i clicked a button, i remove some widgets from the frame,etc. My code is like the following:
  r 
      self.topRatedAppsFrame=QtGui.QFrame(self.centralwidget)
      ...</p>
  
  <pre><code>self.horFortopRatedApps = QtGui.QWidget(self.topRatedAppsFrame)
  ...
  
  self.topRatedAppsList = QtGui.QGridLayout(self.horFortopRatedApps)
  ...
  
  
  self.app1 = QtGui.QPushButton(self.horFortopRatedApps)
  self.topRatedAppsList.addWidget(self.app1,0,0)
  
  
  #########this deletes only widget app1 from topRatedAppsList#########
  #########but frame still exists and appears in the screen.i #########
  ######### want to destroy or delete frame topRatedAppsFrame #########
  self.topRatedAppsList.removeWidget(self.app1)
  self.app1.deleteLater()
  self.app1 = None
  ####################################################################
  </code></pre>
  
  <p>Hint: What i want to implement is implemented in Ubuntu Software Center. Many frames exists in Ubuntu software center. HOwever when we searched something, everything disappears,only search results are displayed. I want to do the <em>same</em> thing. I downloaded the Ubuntu Software Center and examined the source code.Since it is so complex,and gtk is used ,this source code didn't help me. How can i do it? Any guidance or idea will be appreciated.</p>