mirror of
https://git.lynn.is/Gwen/python-layout.git
synced 2024-01-13 01:31:55 +01:00
Fixed imports
This commit is contained in:
parent
ab735e203f
commit
abeae7f3c8
|
@ -1,8 +1,5 @@
|
|||
from .enums import FlexDirection, FlexWrap, FlexJustify, FlexAlignItems, FlexAlignContent, TextAlign, \
|
||||
TextVerticalAlign, TextWrap, ImageMode, ImageAnchor, BoxTitleAnchor
|
||||
|
||||
from .layout import Layout
|
||||
|
||||
from .enums import *
|
||||
from .document import Document
|
||||
from .box import Box
|
||||
from .container import Container
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
from . import Layout
|
||||
from PIL import ImageDraw
|
||||
|
||||
from .enums import BoxTitleAnchor
|
||||
from . import Layout, BoxTitleAnchor
|
||||
|
||||
|
||||
class Box(Layout):
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from . import Layout
|
||||
from PIL import ImageDraw
|
||||
|
||||
from . import Layout
|
||||
from .internal.helpers import min_with_none, max_with_none
|
||||
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
from PIL import Image, ImageFont
|
||||
|
||||
from layout.enums import ColorMode
|
||||
from layout.internal.helpers import max_with_none, min_with_none
|
||||
from layout.layout import Layout
|
||||
from . import Layout, ColorMode
|
||||
from .internal.helpers import max_with_none, min_with_none
|
||||
|
||||
|
||||
class Document(Layout):
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
from . import Layout
|
||||
from . import Layout, FlexDirection, FlexWrap, FlexJustify, FlexAlignItems, FlexAlignContent
|
||||
from .internal.flexlayouter import FlexLayouter
|
||||
from .internal.helpers import min_with_none, max_with_none
|
||||
from .enums import FlexDirection, FlexWrap, FlexJustify, FlexAlignItems, FlexAlignContent
|
||||
|
||||
|
||||
class Flex(Layout):
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
from PIL import ImageDraw, Image as PilImage
|
||||
|
||||
from layout import Layout
|
||||
from layout.enums import ImageMode, ImageAnchor
|
||||
from layout.internal.helpers import max_with_none, min_with_none
|
||||
from . import Layout, ImageMode, ImageAnchor
|
||||
from .internal.helpers import max_with_none, min_with_none
|
||||
|
||||
|
||||
class Image(Layout):
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from ..enums import FlexDirection, FlexWrap, FlexJustify, FlexAlignItems, FlexAlignContent
|
||||
from .. import FlexDirection, FlexWrap, FlexJustify, FlexAlignItems, FlexAlignContent
|
||||
from .helpers import min_with_none, max_with_none
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import unicodedata
|
||||
|
||||
from layout.enums import TextWrap, TextVerticalAlign, TextAlign
|
||||
from .. import TextWrap, TextVerticalAlign, TextAlign
|
||||
|
||||
|
||||
class TextLayouter():
|
||||
|
|
|
@ -2,8 +2,7 @@ import math
|
|||
|
||||
from PIL import Image, ImageDraw
|
||||
|
||||
import layout
|
||||
from layout.internal.helpers import line_intersection
|
||||
from .internal.helpers import line_intersection
|
||||
|
||||
|
||||
class Layout:
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
from PIL import ImageDraw, ImageFont
|
||||
from . import Layout
|
||||
|
||||
from . import Layout, TextAlign, TextVerticalAlign, TextWrap
|
||||
from .internal.textlayouter import TextLayouter
|
||||
from .internal.helpers import min_with_none, max_with_none, get_line_height
|
||||
from .enums import TextAlign, TextVerticalAlign, TextWrap
|
||||
|
||||
|
||||
class Text(Layout):
|
||||
|
|
Loading…
Reference in a new issue