Skip to content

Commit

Permalink
Import cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzion committed Oct 10, 2010
1 parent 25a4111 commit a862387
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 22 deletions.
2 changes: 0 additions & 2 deletions src/AnimationPlayer.py
Expand Up @@ -21,15 +21,13 @@
#####################################################################
from __future__ import with_statement
import os
import sys

from math import fabs as abs # Absolute value

import pygame
from pygame.locals import *

from OpenGL.GL import *
from OpenGL.GLU import *
# Array-based drawing
from numpy.core import array, float32

Expand Down
3 changes: 2 additions & 1 deletion src/Camera.py
Expand Up @@ -19,8 +19,9 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, #
# MA 02110-1301, USA. #
#####################################################################
from OpenGL.GLU import gluLookAt


from OpenGL.GLU import *

class Camera:
def __init__(self):
Expand Down
4 changes: 1 addition & 3 deletions src/Credits.py
Expand Up @@ -25,9 +25,7 @@
from __future__ import with_statement

import pygame
import OpenGL
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GL import OpenGL, glColor4f, glTranslatef
#evilynux: needed for multi-OS file fetching
import os

Expand Down
2 changes: 0 additions & 2 deletions src/Data.py
Expand Up @@ -26,9 +26,7 @@
from Font import Font
from Svg import ImgDrawing
from Audio import Sound
from Language import _
import random
import Language
import Config
import Version
#myfingershurt: needed for multi-OS file fetching
Expand Down
6 changes: 4 additions & 2 deletions src/Debug.py
Expand Up @@ -24,13 +24,15 @@

from __future__ import with_statement

from OpenGL.GL import *
from View import Layer

from OpenGL.GL import glColor3f
import gc
import threading
import Log




class DebugLayer(Layer):
"""A layer for showing some debug information."""
def __init__(self, engine):
Expand Down
1 change: 0 additions & 1 deletion src/Dialogs.py
Expand Up @@ -32,7 +32,6 @@

import pygame
from OpenGL.GL import *
from OpenGL.GLU import *
import math
import os
import fnmatch
Expand Down
1 change: 0 additions & 1 deletion src/GameResultsScene.py
Expand Up @@ -33,7 +33,6 @@
import Scorekeeper
import Dialogs
import Song
import Data
from Menu import Menu
from Audio import Sound
from Language import _
Expand Down
2 changes: 2 additions & 0 deletions src/Guitar.py
Expand Up @@ -34,6 +34,8 @@
from Shader import shaders

from Instrument import *
from OpenGL.GL import *
import Song

class Guitar(Instrument):
def __init__(self, engine, playerObj, editorMode = False, player = 0, bass = False):
Expand Down
9 changes: 4 additions & 5 deletions src/Instrument.py
Expand Up @@ -21,16 +21,15 @@
#####################################################################


from OpenGL.GL import *


#myfingershurt: needed for multi-OS file fetching
import os
from Song import Note, Tempo
import Log

import math
import os


from Song import Note, Tempo
import Song #need the base song defines as well

class Instrument:
def __init__(self, engine, playerObj, player = 0):
Expand Down
1 change: 0 additions & 1 deletion src/MainMenu.py
Expand Up @@ -23,7 +23,6 @@
# MA 02110-1301, USA. #
#####################################################################

from OpenGL.GL import *

from View import BackgroundLayer
from Menu import Menu
Expand Down
2 changes: 1 addition & 1 deletion src/Rockmeter.py
Expand Up @@ -26,7 +26,6 @@
import Config
import os

from OpenGL.GL import *
from Svg import ImgDrawing

import locale
Expand All @@ -35,6 +34,7 @@
#from Draw import *

from PIL import Image, ImageDraw
from OpenGL.GL import glColor3f

#these are the variables for setting the alignment of text and images
#when setting them up in the rockmeter.ini you do not have
Expand Down
1 change: 0 additions & 1 deletion src/SongChoosingScene.py
Expand Up @@ -32,7 +32,6 @@
import Song
import Config
import pygame
from OpenGL.GL import *
import Version
from Menu import Menu
from Settings import ConfigChoice, ActiveConfigChoice
Expand Down
2 changes: 1 addition & 1 deletion src/Svg.py
Expand Up @@ -25,7 +25,7 @@
from OpenGL.GL import *

import numpy as np
from numpy.core import array, float32
from numpy.core import float32
import math
import cmgl

Expand Down
1 change: 0 additions & 1 deletion src/View.py
Expand Up @@ -23,7 +23,6 @@

from __future__ import division
from OpenGL.GL import *
from OpenGL.GLU import *
from contextlib import contextmanager

import numpy as np
Expand Down

0 comments on commit a862387

Please sign in to comment.