Example #1
0
	def add(s, text):
		text = time.strftime("%H:%M:%S:", time.localtime()) + text
		it = InfoItem(text)
		s.items.append(it)
		s.projected += project.project_tags([ColorTag("fg"), ElementTag(it)], s.cols, s).lines
Example #2
0
	def render(s):
		s.lines = project.project_tags(s.top_bar, s.cols, s).lines
		s.lines += s.projected[-s.rows-s.scroll_lines:][:s.rows-len(s.lines)]