pep8 compliance: E701 multiple statements on one line (colon)
This commit is contained in:
parent
a8a954bc69
commit
255ec98ddc
@ -169,9 +169,12 @@ class Widget(object):
|
||||
anchor = self.anchor
|
||||
if dw:
|
||||
factors = [1, 1, 1] # left, width, right
|
||||
if 'r' in anchor: factors[2] = 0;
|
||||
if 'w' in anchor: factors[1] = 0;
|
||||
if 'l' in anchor: factors[0] = 0;
|
||||
if 'r' in anchor:
|
||||
actors[2] = 0;
|
||||
if 'w' in anchor:
|
||||
actors[1] = 0;
|
||||
if 'l' in anchor:
|
||||
actors[0] = 0;
|
||||
if any(factors):
|
||||
resize = factors[1]
|
||||
move = factors[0] or factors[2]
|
||||
@ -182,9 +185,12 @@ class Widget(object):
|
||||
|
||||
if dh:
|
||||
factors = [1, 1, 1] # bottom, height, top
|
||||
if 't' in anchor: factors[2] = 0;
|
||||
if 'h' in anchor: factors[1] = 0;
|
||||
if 'b' in anchor: factors[0] = 0;
|
||||
if 't' in anchor:
|
||||
actors[2] = 0;
|
||||
if 'h' in anchor:
|
||||
actors[1] = 0;
|
||||
if 'b' in anchor:
|
||||
actors[0] = 0;
|
||||
if any(factors):
|
||||
resize = factors[1]
|
||||
move = factors[0] or factors[2]
|
||||
@ -713,7 +719,8 @@ class Widget(object):
|
||||
self._is_gl_container = x
|
||||
|
||||
def gl_draw_all(self, root, offset):
|
||||
if not self.visible: return;
|
||||
if not self.visible:
|
||||
return;
|
||||
from OpenGL import GL, GLU
|
||||
rect = self.rect.move(offset)
|
||||
if self.is_gl_container:
|
||||
|
Reference in New Issue
Block a user