Run yapf on Spline UI
Change-Id: Id09023a4e651fd041ea5acc9814e441780307336
diff --git a/frc971/control_loops/python/basic_window.py b/frc971/control_loops/python/basic_window.py
index 42ba84c..b8d49a9 100755
--- a/frc971/control_loops/python/basic_window.py
+++ b/frc971/control_loops/python/basic_window.py
@@ -10,6 +10,7 @@
identity = cairo.Matrix()
+
# Override the matrix of a cairo context.
class OverrideMatrix(object):
def __init__(self, cr, matrix):
@@ -26,15 +27,18 @@
mainloop = GLib.MainLoop()
+
def set_color(cr, color):
if color.a == 1.0:
cr.set_source_rgb(color.r, color.g, color.b)
else:
cr.set_source_rgba(color.r, color.g, color.b, color.a)
+
def quit_main_loop(*args):
mainloop.quit()
+
def RunApp():
try:
mainloop.run()
@@ -50,9 +54,9 @@
def __init__(self):
super(BaseWindow, self).__init__()
- self.set_size_request(2*SCREEN_SIZE, SCREEN_SIZE)
+ self.set_size_request(2 * SCREEN_SIZE, SCREEN_SIZE)
self.center = (0, 0)
- self.shape = (2*SCREEN_SIZE, SCREEN_SIZE)
+ self.shape = (2 * SCREEN_SIZE, SCREEN_SIZE)
self.needs_redraw = False
def get_current_scale(self):
@@ -81,4 +85,3 @@
# Handle the expose-event by drawing
def handle_draw(self, cr):
pass
-