(self)
定义布局。
定义布局。
定义布局。
def setLayouts(self):
        """定义布局。"""
        self.mainLayout = VBoxLayout(self.frame)
        self.mainLayout.addSpacing(10)
        self.mainLayout.addWidget(self.recommendLabel)
        self.mainLayout.addSpacing(3)
        self.mainLayout.addWidget(self.navigationList)
        self.mainLayout.addSpacing(1)
        
        self.mainLayout.addWidget(self.myMusic)
        self.mainLayout.addSpacing(3)
        self.mainLayout.addWidget(self.nativeList)
        self.mainLayout.addSpacing(1)

        self.mainLayout.addWidget(self.singsListLabel)
        self.mainLayout.addSpacing(1)

        self.mainLayout.addStretch(1)

        self.setContentsMargins(0, 0, 0, 0)
def setLayouts ( self ) : self . mainLayout = VBoxLayout ( self . frame ) self . mainLayout . addSpacing ( 10 ) self . mainLayout . addWidget ( self . recommendLabel ) self . mainLayout . addSpacing ( 3 ) self . mainLayout . addWidget ( self . navigationList ) self . mainLayout . addSpacing ( 1 ) self . mainLayout . addWidget ( self . myMusic ) self . mainLayout . addSpacing ( 3 ) self . mainLayout . addWidget ( self . nativeList ) self . mainLayout . addSpacing ( 1 ) self . mainLayout . addWidget ( self . singsListLabel ) self . mainLayout . addSpacing ( 1 ) self . mainLayout . addStretch ( 1 ) self . setContentsMargins ( 0 , 0 , 0 , 0 )