diff options
author | Johan Dahlin <johan@gnome.org> | 2012-03-22 10:56:03 -0300 |
---|---|---|
committer | Johan Dahlin <jdahlin@litl.com> | 2012-03-22 11:32:00 -0300 |
commit | 032fcce2bf6070a9001cbb780e90403051e303b1 (patch) | |
tree | f107ab73f172c3e4ab8802e9a7da9792fcc1a464 /demos | |
parent | 6a58edbf11c612e9a14347b1556d1e0dd2ec1823 (diff) | |
download | pygobject-032fcce2bf6070a9001cbb780e90403051e303b1.tar.gz |
PEP8: Add spaces before #
https://bugzilla.gnome.org/show_bug.cgi?id=672627
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/demos/drawingarea.py | 6 | ||||
-rw-r--r-- | demos/gtk-demo/demos/images.py | 10 | ||||
-rw-r--r-- | demos/gtk-demo/demos/rotatedtext.py | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/demos/gtk-demo/demos/drawingarea.py b/demos/gtk-demo/demos/drawingarea.py index 8bc5b7f5..03751a62 100644 --- a/demos/gtk-demo/demos/drawingarea.py +++ b/demos/gtk-demo/demos/drawingarea.py @@ -112,7 +112,7 @@ class DrawingAreaApp: while i < width: j = spacing - ycount = xcount % 2 # start with even/odd depending on row + ycount = xcount % 2 # start with even/odd depending on row while j < height: if ycount % 2: cairo_ctx.set_source_rgb(0.45777, 0, 0.45777) @@ -168,7 +168,7 @@ class DrawingAreaApp: return True def scribble_motion_notify_event(self, da, event): - if self.surface == None: # paranoia check, in case we haven't gotten a configure event + if self.surface == None: # paranoia check, in case we haven't gotten a configure event return False # This call is very important; it requests the next motion event. @@ -189,7 +189,7 @@ class DrawingAreaApp: return True def scribble_button_press_event(self, da, event): - if self.surface == None: # paranoia check, in case we haven't gotten a configure event + if self.surface == None: # paranoia check, in case we haven't gotten a configure event return False if event.button == 1: diff --git a/demos/gtk-demo/demos/images.py b/demos/gtk-demo/demos/images.py index f3c946b4..e9a206f5 100644 --- a/demos/gtk-demo/demos/images.py +++ b/demos/gtk-demo/demos/images.py @@ -171,7 +171,7 @@ class ImagesApp: dialog.show() dialog.connect('response', lambda x, y: dialog.destroy()) - return False # uninstall the timeout + return False # uninstall the timeout try: self.pixbuf_loader.write(buf) @@ -190,9 +190,9 @@ class ImagesApp: dialog.show() dialog.connect('response', lambda x, y: dialog.destroy()) - return False # uninstall the timeout + return False # uninstall the timeout - if len(buf) < 256: # eof + if len(buf) < 256: # eof self.image_stream.close() self.image_stream = None @@ -213,7 +213,7 @@ class ImagesApp: dialog.show() dialog.connect('response', lambda x, y: dialog.destroy()) - return False # uninstall the timeout + return False # uninstall the timeout else: img_path = path.join(self.base_path, 'alphatest.png') try: @@ -228,7 +228,7 @@ class ImagesApp: dialog.show() dialog.connect('response', lambda x, y: dialog.destroy()) - return False # uninstall the timeout + return False # uninstall the timeout if self.pixbuf_loader: try: diff --git a/demos/gtk-demo/demos/rotatedtext.py b/demos/gtk-demo/demos/rotatedtext.py index 9c0f9635..677d54ae 100644 --- a/demos/gtk-demo/demos/rotatedtext.py +++ b/demos/gtk-demo/demos/rotatedtext.py @@ -95,7 +95,7 @@ class RotatedTextApp: cairo_ctx.scale(float(attr.inc_rect.width) / Pango.SCALE, float(attr.inc_rect.height) / Pango.SCALE) - if int(attr.data) == 0x2665: # U+2665 BLACK HEART SUIT + if int(attr.data) == 0x2665: # U+2665 BLACK HEART SUIT cairo_ctx.move_to(0.5, 0.0) cairo_ctx.line_to(0.9, -0.4) cairo_ctx.curve_to(1.1, -0.8, 0.5, -0.9, 0.5, -0.5) |