(self)
创建所有的按钮。
创建所有的按钮。
创建所有的按钮。
def setButtons(self):
        """创建所有的按钮。"""

        self.closeButton = QPushButton('×', self)
        self.closeButton.setObjectName("closeButton")
        self.closeButton.setMinimumSize(21, 17)

        self.showminButton = QPushButton('_', self)
        self.showminButton.setObjectName("minButton")
        self.showminButton.setMinimumSize(21, 17)

        self.showmaxButton = QPushButton('□')
        self.showmaxButton.setObjectName("maxButton")
        self.showmaxButton.setMaximumSize(16, 16)

        self.loginButton = QPushButton("未登录 ▼", self)
        self.loginButton.setObjectName("loginButton")

        self.prevButton = QPushButton("<")
        self.prevButton.setObjectName("prevButton")
        self.prevButton.setMaximumSize(28, 22)
        self.prevButton.setMinimumSize(28, 22)

        self.nextButton = QPushButton(">")
        self.nextButton.setObjectName("nextButton")
        self.nextButton.setMaximumSize(28, 22)
        self.nextButton.setMinimumSize(28, 22)
def setButtons ( self ) : self . closeButton = QPushButton ( '×', elf) self . closeButton . setObjectName ( "closeButton" ) self . closeButton . setMinimumSize ( 21 , 17 ) self . showminButton = QPushButton ( '_' , self ) self . showminButton . setObjectName ( "minButton" ) self . showminButton . setMinimumSize ( 21 , 17 ) self . showmaxButton = QPushButton ( '□') self . showmaxButton . setObjectName ( "maxButton" ) self . showmaxButton . setMaximumSize ( 16 , 16 ) self . loginButton = QPushButton ( "未登录 ▼", self) self . loginButton . setObjectName ( "loginButton" ) self . prevButton = QPushButton ( "<" ) self . prevButton . setObjectName ( "prevButton" ) self . prevButton . setMaximumSize ( 28 , 22 ) self . prevButton . setMinimumSize ( 28 , 22 ) self . nextButton = QPushButton ( ">" ) self . nextButton . setObjectName ( "nextButton" ) self . nextButton . setMaximumSize ( 28 , 22 ) self . nextButton . setMinimumSize ( 28 , 22 )