diff options
author | Marek Siarkowicz <mareksiarkowicz@gmail.com> | 2015-06-15 11:33:33 +0200 |
---|---|---|
committer | Marek Siarkowicz <mareksiarkowicz@gmail.com> | 2015-06-15 12:01:43 +0200 |
commit | 947a9f7d10bc3c54939cfa72dab27b2e64034318 (patch) | |
tree | 052108b258f5179c457b762e2134bf9fff1dccfe /parrot_zik/parrot_zik_tray | |
parent | 55255db75378f39807371bb7e434cc943fd66f27 (diff) | |
download | pyParrotZikTCP-947a9f7d10bc3c54939cfa72dab27b2e64034318.tar.xz pyParrotZikTCP-947a9f7d10bc3c54939cfa72dab27b2e64034318.zip |
Create packet.
Diffstat (limited to '')
-rwxr-xr-x | parrot_zik/parrot_zik_tray (renamed from parrot_zik_tray) | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/parrot_zik_tray b/parrot_zik/parrot_zik_tray index b3deaa2..dcdacd0 100755 --- a/parrot_zik_tray +++ b/parrot_zik/parrot_zik_tray @@ -1,20 +1,18 @@ #!/usr/bin/env python import functools from threading import Lock - import gtk -import bluetooth_paired_devices -from parrot_zik import BatteryStates -from parrot_zik import ParrotZikVersion1 -from parrot_zik import ParrotZikVersion2 -from parrot_zik import NoiseControlTypes -from bluetooth_paired_devices import connect -from parrot_zik import Rooms -from indicator import MenuItem -from indicator import Menu -from indicator import SysIndicator -import resource_manager +from parrot_zik import resource_manager +from parrot_zik import bluetooth_paired_devices +from parrot_zik.parrot_zik_model import BatteryStates +from parrot_zik.parrot_zik_model import ParrotZikVersion1 +from parrot_zik.parrot_zik_model import ParrotZikVersion2 +from parrot_zik.parrot_zik_model import NoiseControlTypes +from parrot_zik.parrot_zik_model import Rooms +from parrot_zik.indicator import MenuItem +from parrot_zik.indicator import Menu +from parrot_zik.indicator import SysIndicator REFRESH_FREQUENCY = 30000 RECONNECT_FREQUENCY = 5000 @@ -72,7 +70,7 @@ class ParrotZikIndicator(SysIndicator): else: self.info("Trying to connect") try: - manager = connect() + manager = bluetooth_paired_devices.connect() except bluetooth_paired_devices.BluetoothIsNotOn: self.info("Bluetooth is turned off") except bluetooth_paired_devices.DeviceNotConnected: |