title: PyQt: setSpacing in QGridLayout
body: <p>Can you tell me how to delete spaces between buttons im my Widget? I want to do it by seting command , <code>setSpacing(0)</code>, but I don't know where I should set it. </p>
  
  <p>My code: </p>
  
  <pre><code>import sys
  from PyQt5.QtCore import pyqtSignal, QObject
  from PyQt5.QtWidgets import QMainWindow, QApplication, QGridLayout, 
  QPushButton,QWidget
  
  
  class Saper(QWidget):
  
      def __init__(self):
          super().__init__()
          self.initUI()  
  
      def initUI(self):   
  
          grid = QGridLayout() 
          self.setLayout(grid)    
  
          names = ['Cls', 'Bck', '', 'Close',
                   '7', '8', '9', '/',
                  '4', '5', '6', '*',
                   '1', '2', '3', '-',
                  '0', '.', '=', '+',
                  'f','i','f','i']
  
          positions = [(i,j) for i in range(6) for j in range(4)] 
  
          for position, name in zip(positions, names): 
  
          if name == '':
              continue
          button = QPushButton(name)
          button.setMinimumSize(20,20)
          button.setMaximumSize(20,20)
          grid.addWidget(button, *position)
  
  
      self.setGeometry(300,300,300,300)
      self.setWindowTitle('Title')
      self.move(300, 150)
      self.show()
  
  if __name__ == '__main__':
  
      app = QApplication(sys.argv)
      ex = Saper()
      sys.exit(app.exec_())
  </code></pre>