diff options
author | Marek Siarkowicz <mareksiarkowicz@gmail.com> | 2015-06-13 00:28:37 +0200 |
---|---|---|
committer | Marek Siarkowicz <mareksiarkowicz@gmail.com> | 2015-06-13 00:28:37 +0200 |
commit | d53188baa1c4175d2f9456ac722d35facb47f818 (patch) | |
tree | e6cf21a6609ddea1d43afc0c2a58f295b4f25515 /ParrotZikTray | |
parent | eb6fb90329b1bb0355e00bc588d3740c57ca87bc (diff) | |
download | pyParrotZikTCP-d53188baa1c4175d2f9456ac722d35facb47f818.tar.xz pyParrotZikTCP-d53188baa1c4175d2f9456ac722d35facb47f818.zip |
Refactor.
Diffstat (limited to '')
-rwxr-xr-x | ParrotZikTray | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ParrotZikTray b/ParrotZikTray index a69abe4..6de9e1c 100755 --- a/ParrotZikTray +++ b/ParrotZikTray @@ -119,8 +119,10 @@ class ParrotZikBaseInterface(object): self.firmware_version.show() self.auto_connection.show() - self.name = self.parrot.friendly_name - self.version = self.parrot.version + self.indicator.info_item.set_label("Connected to: " + + self.parrot.friendly_name) + self.firmware_version.set_label( + "Firmware version: " + self.parrot.version) self.auto_connection.set_active(self.parrot.auto_connect) @@ -162,9 +164,6 @@ class ParrotZikBaseInterface(object): else: self.indicator.setIcon("zik-battery-low") - self.indicator.info_item.set_label("Connected to: " + self.name) - self.firmware_version.set_label( - "Firmware version: " + self.version) self.battery_state.set_label( "State: " + BatteryStates.representation[battery_state]) self.battery_level.set_label( |