def _build_summary_box(self, filename):
"""
Build a container that sums up information about an output sink.
:param filename: filename of stored stream as :class:`str`
:return: :class:`Gtk.Box`
"""
self.full_filename_label = Gtk.Label(filename)
settings_button = Gtk.Button(stock=Gtk.STOCK_PROPERTIES)
settings_button.connect("clicked", self.on_settings_clicked)
summary_hbox = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
summary_hbox.set_margin_top(6)
_pack_widgets(summary_hbox,
self.full_filename_label, settings_button)
separator = Gtk.Separator(orientation=Gtk.Orientation.HORIZONTAL)
separator.set_margin_top(6)
vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
_pack_widgets(vbox,
summary_hbox,
self._revealer,
separator)
return vbox
评论列表
文章目录