예제 #1
0
	def collect_tags(s):
		return batch(_collect_tags(s, s.tags()))
예제 #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()])
예제 #3
0
	def get_items(s):
		for i in s.items:
			yield _collect_tags(666, [ColorTag(colors.fg), ElementTag(i)])
예제 #4
0
def collect2():
	import sys
	for i in _collect_tags(editor, editor.tags()):
		if type(i) == str:
			continue
			sys.stdout.write(i)
예제 #5
0
	def tags4item(s, i: int) -> list:
		return _collect_tags(666, [ColorTag(colors.fg), ItemIndexTag( s, i),  ElementTag(s.items[i]), EndTag(), EndTag()])
예제 #6
0
	def source2(s):
		return batch(_collect_tags(s, s.tags()))