本文整理汇总了Python中pp_show.Show.base__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Show.base__init__方法的具体用法?Python Show.base__init__怎么用?Python Show.base__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pp_show.Show
的用法示例。
在下文中一共展示了Show.base__init__方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from pp_show import Show [as 别名]
# 或者: from pp_show.Show import base__init__ [as 别名]
def __init__(self, show_id, show_params, root, canvas, showlist, pp_dir, pp_home, pp_profile, command_callback):
"""
show_id - index of the top level show caling this (for debug only)
show_params - dictionary section for the menu
canvas - the canvas that the menu is to be written on
showlist - the showlist
pp_dir - Pi Presents directory
pp_home - Pi presents data_home directory
pp_profile - Pi presents profile directory
"""
# init the common bits
Show.base__init__(
self, show_id, show_params, root, canvas, showlist, pp_dir, pp_home, pp_profile, command_callback
)
# instatiatate the screen driver - used only to access enable and hide click areas
self.sr = ScreenDriver()
self.controlsmanager = ControlsManager()
# init variables
self.show_timeout_timer = None
self.track_timeout_timer = None
self.next_track_signal = False
self.next_track = None
self.menu_index = 0
self.menu_showing = True
self.req_next = ""
示例2: __init__
# 需要导入模块: from pp_show import Show [as 别名]
# 或者: from pp_show.Show import base__init__ [as 别名]
def __init__(self,
show_id,
show_params,
root,
canvas,
showlist,
pp_dir,
pp_home,
pp_profile,
command_callback):
# init the common bits
Show.base__init__(self,
show_id,
show_params,
root,
canvas,
showlist,
pp_dir,
pp_home,
pp_profile,
command_callback)
# delay in mS before next track is loaded after showing a track.
# can be reduced if animation is not required
self.load_delay = 2000
# Init variables for this show
self.end_medialist_signal=False
self.end_medialist_warning=False
self.next_track_signal=False
self.state='closed'
self.req_next=''
示例3: __init__
# 需要导入模块: from pp_show import Show [as 别名]
# 或者: from pp_show.Show import base__init__ [as 别名]
def __init__(self,
show_id,
show_params,
root,
canvas,
showlist,
pp_dir,
pp_home,
pp_profile,
command_callback):
"""
show_id - index of the top level show caling this (for debug only)
show_params - dictionary section for the menu
canvas - the canvas that the menu is to be written on
showlist - the showlist
pp_dir - Pi Presents directory
pp_home - Pi presents data_home directory
pp_profile - Pi presents profile directory
"""
# init the common bits
Show.base__init__(self,
show_id,
show_params,
root,
canvas,
showlist,
pp_dir,
pp_home,
pp_profile,
command_callback)
# instatiatate the screen driver - used only to access enable and hide click areas
self.sr=ScreenDriver()
# create a path stack and control path debugging
if self.show_params['debug-path']=='yes':
self.debug=True
else:
self.debug=False
self.path = PathManager()
self.allowed_links=('return','home','call','null','exit','goto','play','jump','repeat','pause','no-command','stop','pause-on','pause-off','mute','unmute','go')
# init variables
self.track_timeout_timer=None
self.show_timeout_timer=None
self.next_track_signal=False
self.next_track_ref=''
self.current_track_ref=''
self.current_track_type=''
self.req_next=''
示例4: __init__
# 需要导入模块: from pp_show import Show [as 别名]
# 或者: from pp_show.Show import base__init__ [as 别名]
def __init__(self,
show_id,
show_params,
root,
canvas,
showlist,
pp_dir,
pp_home,
pp_profile,
command_callback):
# init the common bits
Show.base__init__(self,
show_id,
show_params,
root,
canvas,
showlist,
pp_dir,
pp_home,
pp_profile,
command_callback)
# instatiatate the screen driver - used only to access enable and hide click areas
self.sr=ScreenDriver()
self.controlsmanager=ControlsManager()
# Init variables special to this show
self.poll_for_interval_timer=None
self.interval_timer_signal=False
self.waiting_for_interval=False
self.interval_timer=None
self.duration_timer=None
self.end_trigger_signal=False
self.next_track_signal=False
self.previous_track_signal=False
self.play_child_signal = False
self.error_signal=False
self.show_timeout_signal=False
self.req_next='nil'
self.state='closed'
self.count=0
self.interval=0
self.duration=0
self.controls_list=[]
self.enable_hint= True
self.escapetrack_required=False
示例5: __init__
# 需要导入模块: from pp_show import Show [as 别名]
# 或者: from pp_show.Show import base__init__ [as 别名]
def __init__(self,
show_id,
show_params,
root,
canvas,
showlist,
pp_dir,
pp_home,
pp_profile,
command_callback):
"""
show_id - index of the top level show caling this (for debug only)
show_params - dictionary section for the menu
canvas - the canvas that the menu is to be written on
showlist - the showlist
pp_dir - Pi Presents directory
pp_home - Pi presents data_home directory
pp_profile - Pi presents profile directory
"""
# init the common bits
Show.base__init__(self,
show_id,
show_params,
root,
canvas,
showlist,
pp_dir,
pp_home,
pp_profile,
command_callback)
# instatiatate the screen driver - used only to access enable and hide click areas
self.sr=ScreenDriver()
# create an instance of PathManager - only used to parse the links.
self.path = PathManager()
self.allowed_links=('play','pause','exit','return','null','no-command','stop')
# init variables
self.links=[]
self.track_timeout_timer=None
self.show_timeout_timer=None
self.next_track_signal=False
self.current_track_ref=''
self.req_next=''