Esempio n. 1
0
	def collect_tags(s):
		return batch(_collect_tags(s, s.tags()))
Esempio n. 2
0
	def tags4item(s, i: int) -> list:
		return _collect_tags(666, [ColorTag(colors.fg), AttTag(Att.item_index, (s, i)),  ElementTag(s.items[i]), EndTag(), EndTag()])
Esempio n. 3
0
	def get_items(s):
		for i in s.items:
			yield _collect_tags(666, [ColorTag(colors.fg), ElementTag(i)])
Esempio n. 4
0
def collect2():
	import sys
	for i in _collect_tags(editor, editor.tags()):
		if type(i) == str:
			continue
			sys.stdout.write(i)
Esempio n. 5
0
	def tags4item(s, i: int) -> list:
		return _collect_tags(666, [ColorTag(colors.fg), ItemIndexTag( s, i),  ElementTag(s.items[i]), EndTag(), EndTag()])
Esempio n. 6
0
	def source2(s):
		return batch(_collect_tags(s, s.tags()))