Beispiel #1
0
    def __contains__(self, value):
        '''
        Check if specific style is allowed
        '''

        return (value in self.channel_styles or
                BaseStyle.__contains__(self, value))
Beispiel #2
0
    def __init__(self, channel_style):
        '''
        Initialize channel with specific style. Style can not be changed.
        '''

        BaseStyle.__init__(self, channel_style, "channel_style")