def _hide_tb_toggled(self, widget):
if widget.get_active():
self.main.topbuttons.hide()
self.main.mbar.hide()
i = Gtk.Image()
i.set_from_stock(Gtk.STOCK_GO_DOWN, Gtk.IconSize.MENU)
widget.set_image(i)
else:
self.main.topbuttons.show()
self.main.mbar.show()
i = Gtk.Image()
i.set_from_stock(Gtk.STOCK_GO_UP, Gtk.IconSize.MENU)
widget.set_image(i)
评论列表
文章目录