summary refs log tree commit diff
path: root/lib/python/kle2xy.py
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2019-11-13 05:24:56 +0000
committerQMK Bot <hello@qmk.fm>2019-11-13 05:24:56 +0000
commita4c2a9b083d82d9e7d7fe3a68c0d51ae2280495f (patch)
treea1b6edbeb75442ab50b68283bea5af72b09ceccf /lib/python/kle2xy.py
parent7329c2d02d38f40a23d38f789de34057fd2acd42 (diff)
format code according to conventions [skip ci]
Diffstat (limited to 'lib/python/kle2xy.py')
-rw-r--r--lib/python/kle2xy.py17
1 files changed, 4 insertions, 13 deletions
diff --git a/lib/python/kle2xy.py b/lib/python/kle2xy.py
index ea16a4b5ee..9291443190 100644
--- a/lib/python/kle2xy.py
+++ b/lib/python/kle2xy.py
@@ -4,6 +4,7 @@
 import hjson
 from decimal import Decimal
 
+
 class KLE2xy(list):
     """Abstract interface for interacting with a KLE layout.
     """
@@ -13,17 +14,7 @@ class KLE2xy(list):
         self.name = name
         self.invert_y = invert_y
         self.key_width = Decimal('19.05')
-        self.key_skel = {
-            'decal': False,
-            'border_color': 'none',
-            'keycap_profile': '',
-            'keycap_color': 'grey',
-            'label_color': 'black',
-            'label_size': 3,
-            'label_style': 4,
-            'width': Decimal('1'), 'height': Decimal('1'),
-            'x': Decimal('0'), 'y': Decimal('0')
-        }
+        self.key_skel = {'decal': False, 'border_color': 'none', 'keycap_profile': '', 'keycap_color': 'grey', 'label_color': 'black', 'label_size': 3, 'label_style': 4, 'width': Decimal('1'), 'height': Decimal('1'), 'x': Decimal('0'), 'y': Decimal('0')}
         self.rows = Decimal(0)
         self.columns = Decimal(0)
 
@@ -34,13 +25,13 @@ class KLE2xy(list):
     def width(self):
         """Returns the width of the keyboard plate.
         """
-        return (Decimal(self.columns) * self.key_width) + self.key_width/2
+        return (Decimal(self.columns) * self.key_width) + self.key_width / 2
 
     @property
     def height(self):
         """Returns the height of the keyboard plate.
         """
-        return (self.rows * self.key_width) + self.key_width/2
+        return (self.rows * self.key_width) + self.key_width / 2
 
     @property
     def size(self):