docs: def showPopup(self):
          """
          Shows the popup for this button.
          """
          as_dialog = QApplication.keyboardModifiers()
          
          anchor = self.defaultAnchor()
          if anchor:
              self.popupWidget().setAnchor(anchor)
          else:
              anchor = self.popupWidget().anchor()
          
          if ( anchor & (XPopupWidget.Anchor.BottomLeft |
                         XPopupWidget.Anchor.BottomCenter |
                         XPopupWidget.Anchor.BottomRight) ):
              pos = QPoint(self.width() / 2, 0)
          else:
              pos = QPoint(self.width() / 2, self.height())
          
          pos = self.mapToGlobal(pos)
          
          if not self.signalsBlocked():
              self.popupAboutToShow.emit()
          self._popupWidget.popup(pos)
          
          if as_dialog:
              self._popupWidget.setCurrentMode(XPopupWidget.Mode.Dialog)