(self, parent=None, settings=None)
Constructor

        @param parent reference to the parent widget (QWidget)
Constructor
Constructor
def __init__(self, parent=None, settings=None):
        """
        Constructor

        @param parent reference to the parent widget (QWidget)
        """
        super().__init__(parent)
        self.setupUi(self)

        self.autoRun.setChecked(autorun.exists('BingNiceWallpapers'))
        self.storePathEdit.setText(
            os.path.join(settings.value("pathToWallpaperDir"), '必应好壁纸壁纸库'))
        self.storePathEdit_2.setText(
            os.path.join(settings.value("pathToLikedWallpaperDir"), '收藏的必应壁纸'))

        self.timeEdit.setTime(QTime.fromMSecsSinceStartOfDay(int(settings.value("timeoutInterval"))))
def __init__ ( self , parent = None , settings = None ) : super ( ) . __init__ ( parent ) self . setupUi ( self ) self . autoRun . setChecked ( autorun . exists ( 'BingNiceWallpapers' ) ) self . storePathEdit . setText ( os . path . join ( settings . value ( "pathToWallpaperDir" ) , '必应好壁纸壁纸库')) self . storePathEdit_2 . setText ( os . path . join ( settings . value ( "pathToLikedWallpaperDir" ) , '收藏的必应壁纸')) self . timeEdit . setTime ( QTime . fromMSecsSinceStartOfDay ( int ( settings . value ( "timeoutInterval" ) ) ) )