mirror of https://github.com/kivy/kivy.git
avoid relative import
This commit is contained in:
parent
e8cf1d52f1
commit
7ca45b2f28
|
@ -15,7 +15,7 @@ Image loader implementation based on CoreGraphics OSX framework.
|
|||
__all__ = ('ImageLoaderImageIO', )
|
||||
|
||||
from kivy.logger import Logger
|
||||
from . import ImageLoaderBase, ImageData, ImageLoader
|
||||
from kivy.core.image import ImageLoaderBase, ImageData, ImageLoader
|
||||
|
||||
from array import array
|
||||
from libcpp cimport bool
|
||||
|
|
|
@ -11,7 +11,7 @@ TODO:
|
|||
|
||||
__all__ = ('LabelSDLttf', )
|
||||
|
||||
from . import LabelBase
|
||||
from kivy.core.text import LabelBase
|
||||
from kivy.core.image import ImageData
|
||||
from kivy.resources import resource_paths
|
||||
from os.path import exists, join
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
# This file was automatically generated with kivy/tools/stub-gl-debug.py
|
||||
include "common.pxi"
|
||||
cimport c_opengl as cgl
|
||||
cimport kivy.graphics.c_opengl as cgl
|
||||
|
||||
|
||||
cdef void glActiveTexture (GLenum texture) with gil:
|
||||
|
|
|
@ -59,8 +59,8 @@ Note to any Kivy contributor / internal developer:
|
|||
|
||||
include 'opcodes.pxi'
|
||||
|
||||
from instructions cimport Instruction, RenderContext, ContextInstruction
|
||||
from context_instructions cimport BindTexture
|
||||
from kivy.graphics.instructions cimport Instruction, RenderContext, ContextInstruction
|
||||
from kivy.graphics.context_instructions cimport BindTexture
|
||||
|
||||
cdef class GraphicsCompiler:
|
||||
cdef InstructionGroup compile(self, InstructionGroup group):
|
||||
|
|
|
@ -21,8 +21,8 @@ __all__ = ('Color', 'BindTexture', 'PushMatrix', 'PopMatrix',
|
|||
'Rotate', 'Scale', 'Translate', 'MatrixInstruction',
|
||||
'gl_init_resources')
|
||||
|
||||
from instructions cimport *
|
||||
from transformation cimport *
|
||||
from kivy.graphics.instructions cimport *
|
||||
from kivy.graphics.transformation cimport *
|
||||
|
||||
from kivy.cache import Cache
|
||||
from kivy.resources import resource_find
|
||||
|
|
|
@ -23,10 +23,10 @@ __all__ = ('ClearColor', 'ClearBuffers')
|
|||
include "config.pxi"
|
||||
include "opcodes.pxi"
|
||||
|
||||
from c_opengl cimport *
|
||||
from kivy.graphics.c_opengl cimport *
|
||||
IF USE_OPENGL_DEBUG == 1:
|
||||
from c_opengl_debug cimport *
|
||||
from instructions cimport Instruction
|
||||
from kivy.graphics.instructions cimport Instruction
|
||||
|
||||
|
||||
cdef class ClearColor(Instruction):
|
||||
|
|
|
@ -16,7 +16,7 @@ include "opengl_utils_def.pxi"
|
|||
cimport c_opengl
|
||||
from kivy.logger import Logger
|
||||
from kivy.utils import platform as core_platform
|
||||
from opengl import _GL_GET_SIZE
|
||||
from kivy.graphics.opengl import _GL_GET_SIZE
|
||||
|
||||
|
||||
cdef list _gl_extensions = []
|
||||
|
|
|
@ -93,10 +93,10 @@ __all__ = ('StencilPush', 'StencilPop', 'StencilUse', 'StencilUnUse')
|
|||
include "config.pxi"
|
||||
include "opcodes.pxi"
|
||||
|
||||
from c_opengl cimport *
|
||||
from kivy.graphics.c_opengl cimport *
|
||||
IF USE_OPENGL_DEBUG == 1:
|
||||
from c_opengl_debug cimport *
|
||||
from instructions cimport Instruction
|
||||
from kivy.graphics.c_opengl_debug cimport *
|
||||
from kivy.graphics.instructions cimport Instruction
|
||||
|
||||
cdef int _stencil_level = 0
|
||||
cdef int _stencil_in_push = 0
|
||||
|
|
|
@ -12,11 +12,11 @@ include "config.pxi"
|
|||
include "common.pxi"
|
||||
|
||||
from os import environ
|
||||
from buffer cimport Buffer
|
||||
from c_opengl cimport *
|
||||
from kivy.graphics.buffer cimport Buffer
|
||||
from kivy.graphics.c_opengl cimport *
|
||||
IF USE_OPENGL_DEBUG == 1:
|
||||
from c_opengl_debug cimport *
|
||||
from vertex cimport *
|
||||
from kivy.graphics.c_opengl_debug cimport *
|
||||
from kivy.graphics.vertex cimport *
|
||||
from kivy.logger import Logger
|
||||
from kivy.graphics.context cimport Context, get_context
|
||||
|
||||
|
|
Loading…
Reference in New Issue