From 12c9474218f835a9443def9b685241db5454ef40 Mon Sep 17 00:00:00 2001 From: neodarz Date: Fri, 10 May 2019 22:35:26 +0200 Subject: Remove pyGTK crap --- parrot_zik/model/version2.py | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'parrot_zik/model') diff --git a/parrot_zik/model/version2.py b/parrot_zik/model/version2.py index 0cbdc1a..bbdec6a 100644 --- a/parrot_zik/model/version2.py +++ b/parrot_zik/model/version2.py @@ -107,24 +107,25 @@ class NoiseControl(object): class NoiseControlTypes: - NOISE_CONTROL_MAX = NoiseControl('anc', 2) - NOISE_CONTROL_ON = NoiseControl('anc', 1) - NOISE_CONTROL_OFF = NoiseControl('off', 1) - STREET_MODE = NoiseControl('aoc', 1) - STREET_MODE_MAX = NoiseControl('aoc', 2) + representation = { + 'NOISE_CONTROL_MAX': NoiseControl('anc', 2), + 'NOISE_CONTROL_ON': NoiseControl('anc', 1), + 'NOISE_CONTROL_OFF': NoiseControl('off', 1), + 'STREET_MODE': NoiseControl('aoc', 1), + 'STREET_MODE_MAX': NoiseControl('aoc', 2), + } class Rooms: - CONCERT_HALL = 'concert' - JAZZ_CLUB = 'jazz' - LIVING_ROOM = 'living' - SILENT_ROOM = 'silent' - representation = { - CONCERT_HALL: 'Concert Hall', - JAZZ_CLUB: 'Jazz Club', - LIVING_ROOM: 'Living Room', - SILENT_ROOM: 'Silent Room', - } + representation = [ + 'concert', + 'jazz', + 'living', + 'silent', + ] + +class Angles: + representation = [30, 60, 90, 120, 150, 180] class SoundSource: LINE_IN = 'line-in' -- cgit v1.2.1