__init__.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:BigBrotherBot-For-UrT43 作者: ptitbigorneau 项目源码 文件源码
def __init__(self, id=None, config=None, lastrun=-1):
        """
        Initialize a new B3 instance.
        :param id: the B3 instance id :type int:
        :param config: the B3 configuration file path :type MainConfig: || :type str:
        :param lastrun: the B3 last run timestamp :type int:
        """
        QProcess.__init__(self)
        self.id = id
        self.config = config
        self.lastrun = lastrun

        # create the console window (hidden by default)
        self.stdout = STDOutDialog(process=self)
        self.setProcessChannelMode(QProcess.MergedChannels)
        self.readyReadStandardOutput.connect(self.stdout.read_stdout)
        self.readyReadStandardError.connect(self.stdout.read_stdout)
        # configure signal handlers
        self.error.connect(self.process_errored)
        self.finished.connect(self.process_finished)
        self.started.connect(self.process_started)

    ############################################### PROPERTIES #########################################################
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号