def METHOD_NAME(self, num, add_dot=False, active_win_ws=0):
    eb = Gtk.EventBox()
    eb.connect("enter_notify_event", self.on_enter_notify_event)
    eb.connect("leave_notify_event", self.on_leave_notify_event)
    eb.connect("button-release-event", self.on_click, num)
    eb.add_events(Gdk.EventMask.SCROLL_MASK)
    eb.connect('scroll-event', self.on_scroll)
    if active_win_ws == num:
        eb.set_property("name", "task-box-focused")
    else:
        eb.set_property("name", "")
    box = Gtk.Box.new(Gtk.Orientation.HORIZONTAL, 0)
    if self.settings["angle"] != 0.0:
        box.set_orientation(Gtk.Orientation.VERTICAL)
    eb.add(box)
    name = str(num)
    if self.settings["show-names"] and num in self.ws_id2name and self.ws_id2name[num] != str(num):
        name = "{} {}".format(num, self.ws_id2name[num])
    lbl = Gtk.Label.new("{}".format(name)) if not add_dot else Gtk.Label.new("{}.".format(name))
    lbl.set_use_markup(True)
    if self.settings["angle"] != 0.0:
        lbl.set_angle(self.settings["angle"])
        self.name_label.set_angle(self.settings["angle"])
    box.pack_start(lbl, False, False, 6)
    return eb, lbl