本文整理汇总了Python中block.Block.series方法的典型用法代码示例。如果您正苦于以下问题:Python Block.series方法的具体用法?Python Block.series怎么用?Python Block.series使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类block.Block
的用法示例。
在下文中一共展示了Block.series方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Block
# 需要导入模块: from block import Block [as 别名]
# 或者: from block.Block import series [as 别名]
# -*- coding: utf-8 -*-
# This file contains settings for a week's schedule
from block import Block
from series import Series
# EXAMPLE BLOCK
testBlock = Block()
testBlock.picker = 'default'
testBlock.ad_picker = 'default'
testBlock.autoAd("test")
testBlock.use_ads = True
testBlock.old_episodes = True
testBlock.series = [
Series("test2"),
]
# ANOTHER BLOCK
anotherBlock = Block()
anotherBlock.picker = 'latest'
anotherBlock.series = [
Series(auto="test"),
]
# ACTIVE BLOCKS
BLOCKS = (
(testBlock, "Monday 11:10", "Monday 14:36"),
(anotherBlock, "Monday 11:36", "Monday 17:10"),
)