Remove comprehension and replace with loop in reposition_windows().
This commit is contained in:
parent
fb4e818ed2
commit
5505ebdec2
|
@ -201,8 +201,9 @@ class Hud:
|
||||||
self.aux_windows = []
|
self.aux_windows = []
|
||||||
|
|
||||||
def reposition_windows(self, *args):
|
def reposition_windows(self, *args):
|
||||||
if self.stat_windows != {} and len(self.stat_windows) > 0:
|
for w in self.stat_windows.itervalues():
|
||||||
(x.window.move(x.x, x.y) for x in self.stat_windows.itervalues() if type(x) != int)
|
if type(w) == int: continue
|
||||||
|
w.window.move(w.x, w.y)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def debug_stat_windows(self, *args):
|
def debug_stat_windows(self, *args):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user