def windowbounds(width, height):
 global next_window_x, next_window_y
 (r, b) = ((next_window_x + width), (next_window_y + height))
 if (r > screenbounds[2]):
  next_window_x = 16
 if (b > screenbounds[3]):
  next_window_y = 44
 (l, t) = (next_window_x, next_window_y)
 (r, b) = ((next_window_x + width), (next_window_y + height))
 (next_window_x, next_window_y) = ((next_window_x + 8), (next_window_y + 20))
 return (l, t, r, b)

def windowbounds ( width , height ) : global next_window_x , next_window_y ( r , b ) = ( ( next_window_x + width ) , ( next_window_y + height ) ) if ( r > screenbounds [ 2 ] ) : next_window_x = 16 if ( b > screenbounds [ 3 ] ) : next_window_y = 44 ( l , t ) = ( next_window_x , next_window_y ) ( r , b ) = ( ( next_window_x + width ) , ( next_window_y + height ) ) ( next_window_x , next_window_y ) = ( ( next_window_x + 8 ) , ( next_window_y + 20 ) ) return ( l , t , r , b )
return sensible window bounds .