mirror of
https://github.com/ldericher/fftcgtool
synced 2025-01-15 15:02:59 +00:00
opt
This commit is contained in:
parent
3df5911123
commit
5305a74bb2
3 changed files with 4 additions and 6 deletions
|
@ -1,7 +1,5 @@
|
||||||
import queue
|
import queue
|
||||||
|
|
||||||
from .imageloader import ImageLoader
|
|
||||||
|
|
||||||
|
|
||||||
class Book:
|
class Book:
|
||||||
def __init__(self, cards):
|
def __init__(self, cards):
|
||||||
|
@ -10,7 +8,7 @@ class Book:
|
||||||
def __get_pages(self, grid):
|
def __get_pages(self, grid):
|
||||||
# cards per sheet
|
# cards per sheet
|
||||||
r, c = grid
|
r, c = grid
|
||||||
capacity = r*c - 1
|
capacity = r * c - 1
|
||||||
# flat copy
|
# flat copy
|
||||||
cards = self.__cards
|
cards = self.__cards
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import io
|
import io
|
||||||
import logging
|
import logging
|
||||||
import threading
|
|
||||||
import queue
|
import queue
|
||||||
|
import threading
|
||||||
|
|
||||||
from PIL import Image
|
|
||||||
import requests
|
import requests
|
||||||
|
from PIL import Image
|
||||||
|
|
||||||
|
|
||||||
class ImageLoader(threading.Thread):
|
class ImageLoader(threading.Thread):
|
||||||
|
|
2
main.py
2
main.py
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from fftcg.opus import Opus
|
|
||||||
from fftcg.imageloader import ImageLoader
|
from fftcg.imageloader import ImageLoader
|
||||||
|
from fftcg.opus import Opus
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Loading…
Reference in a new issue