diff options
author | neodarz <neodarz@neodarz.net> | 2019-05-10 22:35:26 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-05-10 22:42:01 +0200 |
commit | 12c9474218f835a9443def9b685241db5454ef40 (patch) | |
tree | 32981b097c4a396253176e6eb5d11c9ed5067c27 /parrot_zik/model | |
parent | 52cda61eeaee8d6575936c28348d0b095e9af830 (diff) | |
download | pyParrotZikTCP-12c9474218f835a9443def9b685241db5454ef40.tar.xz pyParrotZikTCP-12c9474218f835a9443def9b685241db5454ef40.zip |
Remove pyGTK crap
Diffstat (limited to 'parrot_zik/model')
-rw-r--r-- | parrot_zik/model/version2.py | 31 |
1 files changed, 16 insertions, 15 deletions
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' |