Ejemplo n.º 1
0
def yield_verses(mod):
    from swlib.pysw import VK, TOP
    vk = VK()
    vk.Headings(1)
    vk.setPosition(TOP)
    #vk.setText("Matthew 1:1")
    vk.Persist(1)
    vk.thisown = False

    mod.setKey(vk)

    books = ("Genesis", "Matthew")  #"Exodus")
    while not vk.Error():
        #while vk.Testament() in '\x00\x01':
        #while vk.Testament() == '\x00' or vk.Book() == '\x00' or \
        #	vk.getBookName() in books:
        yield
        vk.increment(1)
Ejemplo n.º 2
0
def yield_verses(mod):
	from swlib.pysw import VK, TOP
	vk = VK()
	vk.Headings(1)
	vk.setPosition(TOP)
	#vk.setText("Matthew 1:1")
	vk.Persist(1)
	vk.thisown = False
	
	mod.setKey(vk)

	books = ("Genesis", "Matthew")#"Exodus")
	while not vk.Error():
	#while vk.Testament() in '\x00\x01':
	#while vk.Testament() == '\x00' or vk.Book() == '\x00' or \
	#	vk.getBookName() in books:
		yield 
		vk.increment(1)