def update_mylib_interface(self):
if (len(mylib_installation_queue) > 0) and (mylib_installation_queue[0] != self.mylib_now_installing):
self.mylib_now_installing = mylib_installation_queue[0]
self.mylib_install_game(mylib_installation_queue[0])
for button in mylib_setup_buttons_list:
if button.get_name() == self.mylib_now_installing:
button.set_label(_("Installing"))
if self.mylib_filters_box.get_allocation().height != 1:
self.scrolledwindow_mylib_filters.set_property('height_request', \
self.mylib_filters_box.get_allocation().height + 20)
if (self.box_mylib_page.get_allocation().width != self.mylib_box_width):
self.mylib_box_width = self.box_mylib_page.get_allocation().width
self.update_mylib_grid()
self.update_queue_banners()
if (len(mylib_installation_queue) == 0):
self.mylib_installation_status_box.set_visible(False)
else:
self.mylib_installation_status_box.set_visible(True)
GObject.timeout_add(1000, self.update_mylib_interface)
评论列表
文章目录