Beispiel #1
0
 def __init__(self, custom_options=[]):
     """Initialize Video with a string, list, or dictionary of options."""
     # TODO: Possibly eliminate code repetition w/ Disc & Menu by adding
     # a base class and inheriting
     self.options = OptionDict(self.optiondefs)
     self.options.override(custom_options)
     self.parent = None
     self.children = []
Beispiel #2
0
 def __init__(self, custom_options=[]):
     """Initialize Menu with a string or list of options."""
     self.options = OptionDict(self.optiondefs)
     self.options.override(custom_options)
     self.parent = None
     self.children = []