title: Button doesn't show up
body: <p>i'm trying to do a simple GUI for a python script that convert some text into a specific format but buttons doesn't show up in the window.</p>
  <p>I first create the button class</p>
  <pre><code>class Button(QPushButton):
      def __init__(self, btn_name=None):
          super().__init__()
          self.button = QPushButton(btn_name)
          self.button.setCursor(
              QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
          self.button.setStyleSheet(
              &quot;&quot;&quot;*{border: 4px solid 'green';
              border-radius: 45px;
              font-size: 35px;
              color: 'white';
              padding: 25px 0;
              margin: 100px, 200px}
              *:hover{background: 'green'}
              *:pressed{background: 'lightgreen'}&quot;&quot;&quot;
          )
  </code></pre>
  <p>Then create the window class like this</p>
  <pre><code>class MainWindow(QWidget):
      def __init__(self):
          super().__init__()
          self.window = QWidget()
          self.window.resize(500, 500)
          self.window.setWindowTitle(&quot;Pantuflis Software&quot;)
          self.window.setFixedWidth(1000)
          self.window.setStyleSheet(&quot;background: 'black';&quot;)
          self.grid = QGridLayout()
          self.window.setLayout(self.grid)
          self.button = Button(&quot;Play&quot;)
          self.grid.addWidget(self.button)
          self.window.show()
  </code></pre>
  <p>Finally add the rest</p>
  <pre><code>if __name__ == &quot;__main__&quot;:
      app = QApplication(sys.argv)
      window = MainWindow()
      sys.exit(app.exec())
  </code></pre>
  <p>But the button doesn't show up, only the main window does. I also tried the same but without creataing the button from my own class and works. Must be something wrong in the button class but i can't see what is.</p>