summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Konrath <ben@bagu.org>2009-12-01 14:14:25 -0500
committerBen Konrath <ben@bagu.org>2009-12-01 14:14:25 -0500
commit6bc33f4c42d7b5ef3717372753d473a9178879d0 (patch)
treebfc165e3b16f775cb29dc521885ef88caaa23e0c
parent5f861037bbb5ec4d4b71d54b20fa3613d9c30eb3 (diff)
downloadcaribou-6bc33f4c42d7b5ef3717372753d473a9178879d0.tar.gz
fix some whitespace issues
-rw-r--r--src/keyboard.py18
-rw-r--r--src/qwerty.py4
2 files changed, 11 insertions, 11 deletions
diff --git a/src/keyboard.py b/src/keyboard.py
index affc963..758e73d 100644
--- a/src/keyboard.py
+++ b/src/keyboard.py
@@ -54,7 +54,7 @@ class CaribouKeyboard(gtk.Frame):
if key == "cf":
# configuration key
# FIXME scale based on size of other buttons
- scaleFactor = 0.5
+ scaleFactor = 0.5
# FIXME catch "RuntimeError: unknown librsvg error" for file not found
# FIXME use broken image when file not found
svg = rsvg.Handle("config.svg")
@@ -66,12 +66,12 @@ class CaribouKeyboard(gtk.Frame):
svg.render_cairo(cr)
cfg = gtk.Image()
data = surface.get_data()
- pixbuf = gtk.gdk.pixbuf_new_from_data(data,
- gtk.gdk.COLORSPACE_RGB,
- True,
- 8,
- int(round(svg.props.width * scaleFactor)),
- int(round(svg.props.height * scaleFactor)),
+ pixbuf = gtk.gdk.pixbuf_new_from_data(data,
+ gtk.gdk.COLORSPACE_RGB,
+ True,
+ 8,
+ int(round(svg.props.width * scaleFactor)),
+ int(round(svg.props.height * scaleFactor)),
int(round(svg.props.width * scaleFactor * 4)))
cfg.set_from_pixbuf(pixbuf)
button = gtk.Button()
@@ -102,7 +102,7 @@ class CaribouKeyboard(gtk.Frame):
layoutvbox.pack_start(rowhbox, expand=False, fill=True)
self._layouts.append(layoutvbox)
-
+
# add configuration window to layouts
# TODO use gtkBuilder
confhbox = gtk.HBox(homogeneous=True)
@@ -125,7 +125,7 @@ class CaribouKeyboard(gtk.Frame):
break
else:
print "ERROR" # TODO throw exception
-
+
# add the first layout and make it visible
self.add(self._layouts[0])
self.show_all()
diff --git a/src/qwerty.py b/src/qwerty.py
index 83cb534..8dc32c3 100644
--- a/src/qwerty.py
+++ b/src/qwerty.py
@@ -63,11 +63,11 @@ np = (".?12", "num_punct")
lt = ("abc", "lowercase")
###############################################################################
-# keyboard layouts
+# keyboard layouts
# rules:
# * key can be a single utf-8 character or a tuple defined above
# * at least one layout must contain the reserved label "cf" for configuration
-# * layouts must be the same dimensions
+# * layouts must be the same dimensions
###############################################################################
lowercase = ( ("cf", "q", "w", "e", "r", "t", "y", "u", "i", "o", "p"),