games_nebula.py 文件源码

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

项目:games_nebula 作者: yancharkin 项目源码 文件源码
def update_goglib_interface(self):

        if (len(self.goglib_new_games_list) != 0) and self.main_window.get_visible():
            self.update_goglib()

        if (len(goglib_installation_queue) > 0) and (goglib_installation_queue[0] != self.goglib_now_installing):
            self.goglib_now_installing = goglib_installation_queue[0]
            self.goglib_download_game(goglib_installation_queue[0])

            for button in goglib_setup_buttons_list:
                if button.get_name() == self.goglib_now_installing:
                    button.set_label(_("Installing"))

        if self.box_goglib_filters.get_allocation().height != 1:
            self.scrolledwindow_filters.set_property('height_request', \
            self.box_goglib_filters.get_allocation().height + 20)

        if (self.box_goglib_page.get_allocation().width != self.goglib_box_width):

            self.goglib_box_width = self.box_goglib_page.get_allocation().width

            self.update_goglib_grid()

            self.update_queue_banners()

        if (len(goglib_installation_queue) == 0):
            self.box_goglib_installation_status.set_visible(False)
        else:
            self.box_goglib_installation_status.set_visible(True)

        GObject.timeout_add(1000, self.update_goglib_interface)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号