not sure why black changes got missed
This commit is contained in:
parent
5456e28d4d
commit
4ef7817710
@ -36,22 +36,16 @@ class CardPlot(object):
|
|||||||
) # location & directional constants
|
) # location & directional constants
|
||||||
|
|
||||||
tabNumber = 1 # Number of different tab locations
|
tabNumber = 1 # Number of different tab locations
|
||||||
tabIncrement = (
|
tabIncrement = 0 # Either 1, 0, or -1. Used to select next tab. This can change if tabSerpentine.
|
||||||
0
|
|
||||||
) # Either 1, 0, or -1. Used to select next tab. This can change if tabSerpentine.
|
|
||||||
tabIncrementStart = 0 # Starting value of tabIncrement
|
tabIncrementStart = 0 # Starting value of tabIncrement
|
||||||
tabStart = 1 # The starting tab location.
|
tabStart = 1 # The starting tab location.
|
||||||
tabStartSide = LEFT # The starting side for the tabs
|
tabStartSide = LEFT # The starting side for the tabs
|
||||||
tabSerpentine = (
|
tabSerpentine = False # What to do at the end of a line of tabs. False = start over. True = reverses direction.
|
||||||
False
|
|
||||||
) # What to do at the end of a line of tabs. False = start over. True = reverses direction.
|
|
||||||
lineType = "line" # Type of outline to use: line, dot, none
|
lineType = "line" # Type of outline to use: line, dot, none
|
||||||
cardWidth = (
|
cardWidth = (
|
||||||
0
|
0 # Width of just the divider, with no extra padding/spacing. NEEDS TO BE SET.
|
||||||
) # Width of just the divider, with no extra padding/spacing. NEEDS TO BE SET.
|
)
|
||||||
cardHeight = (
|
cardHeight = 0 # Height of just the divider, with no extra padding/spacing or tab. NEEDS TO BE SET.
|
||||||
0
|
|
||||||
) # Height of just the divider, with no extra padding/spacing or tab. NEEDS TO BE SET.
|
|
||||||
tabWidth = 0 # Width of the tab. NEEDS TO BE SET.
|
tabWidth = 0 # Width of the tab. NEEDS TO BE SET.
|
||||||
tabHeight = 0 # Height of the tab. NEEDS TO BE SET.
|
tabHeight = 0 # Height of the tab. NEEDS TO BE SET.
|
||||||
wrapper = False # If the divider is a sleeve/wrapper.
|
wrapper = False # If the divider is a sleeve/wrapper.
|
||||||
@ -134,36 +128,26 @@ class CardPlot(object):
|
|||||||
self.y = y # y location of the lower left corner of the card on the page
|
self.y = y # y location of the lower left corner of the card on the page
|
||||||
self.rotation = rotation # of the card. 0, 90, 180, 270
|
self.rotation = rotation # of the card. 0, 90, 180, 270
|
||||||
self.stackHeight = (
|
self.stackHeight = (
|
||||||
stackHeight
|
stackHeight # The height of a stack of these cards. Used for interleaving.
|
||||||
) # The height of a stack of these cards. Used for interleaving.
|
)
|
||||||
self.tabIndex = (
|
self.tabIndex = tabIndex # Tab location index. Starts at 1 and goes up to CardPlot.tabNumber
|
||||||
tabIndex
|
|
||||||
) # Tab location index. Starts at 1 and goes up to CardPlot.tabNumber
|
|
||||||
self.page = page # holds page number of this printed card
|
self.page = page # holds page number of this printed card
|
||||||
self.textTypeFront = (
|
self.textTypeFront = (
|
||||||
textTypeFront
|
textTypeFront # What card text to put on the front of the divider
|
||||||
) # What card text to put on the front of the divider
|
)
|
||||||
self.textTypeBack = (
|
self.textTypeBack = (
|
||||||
textTypeBack
|
textTypeBack # What card text to put on the back of the divider
|
||||||
) # What card text to put on the back of the divider
|
)
|
||||||
self.cropOnTop = (
|
self.cropOnTop = cropOnTop # When true, cropmarks needed along TOP *printed* edge of the card
|
||||||
cropOnTop
|
self.cropOnBottom = cropOnBottom # When true, cropmarks needed along BOTTOM *printed* edge of the card
|
||||||
) # When true, cropmarks needed along TOP *printed* edge of the card
|
self.cropOnLeft = cropOnLeft # When true, cropmarks needed along LEFT *printed* edge of the card
|
||||||
self.cropOnBottom = (
|
self.cropOnRight = cropOnRight # When true, cropmarks needed along RIGHT *printed* edge of the card
|
||||||
cropOnBottom
|
|
||||||
) # When true, cropmarks needed along BOTTOM *printed* edge of the card
|
|
||||||
self.cropOnLeft = (
|
|
||||||
cropOnLeft
|
|
||||||
) # When true, cropmarks needed along LEFT *printed* edge of the card
|
|
||||||
self.cropOnRight = (
|
|
||||||
cropOnRight
|
|
||||||
) # When true, cropmarks needed along RIGHT *printed* edge of the card
|
|
||||||
|
|
||||||
# And figure out the backside index
|
# And figure out the backside index
|
||||||
if self.tabIndex == 0:
|
if self.tabIndex == 0:
|
||||||
self.tabIndexBack = (
|
self.tabIndexBack = (
|
||||||
0
|
0 # Exact Centre special case, so swapping is still exact centre
|
||||||
) # Exact Centre special case, so swapping is still exact centre
|
)
|
||||||
elif CardPlot.tabNumber == 1:
|
elif CardPlot.tabNumber == 1:
|
||||||
self.tabIndex = (
|
self.tabIndex = (
|
||||||
self.tabIndexBack
|
self.tabIndexBack
|
||||||
@ -372,7 +356,15 @@ class Plotter(object):
|
|||||||
self.canvas = canvas
|
self.canvas = canvas
|
||||||
self.x = x
|
self.x = x
|
||||||
self.y = y
|
self.y = y
|
||||||
self.LEFT, self.RIGHT, self.TOP, self.BOTTOM, self.LINE, self.NO_LINE, self.DOT = range(
|
(
|
||||||
|
self.LEFT,
|
||||||
|
self.RIGHT,
|
||||||
|
self.TOP,
|
||||||
|
self.BOTTOM,
|
||||||
|
self.LINE,
|
||||||
|
self.NO_LINE,
|
||||||
|
self.DOT,
|
||||||
|
) = range(
|
||||||
1, 8
|
1, 8
|
||||||
) # Constants
|
) # Constants
|
||||||
if cropmarkLength < 0:
|
if cropmarkLength < 0:
|
||||||
|
|||||||
@ -36,8 +36,8 @@ EDITION_CHOICES = ["1", "2", "latest", "all"]
|
|||||||
ORDER_CHOICES = ["expansion", "global", "colour", "cost"]
|
ORDER_CHOICES = ["expansion", "global", "colour", "cost"]
|
||||||
|
|
||||||
LANGUAGE_DEFAULT = (
|
LANGUAGE_DEFAULT = (
|
||||||
"en_us"
|
"en_us" # the primary language used if a language's parts are missing
|
||||||
) # the primary language used if a language's parts are missing
|
)
|
||||||
LANGUAGE_XX = "xx" # a dummy language for starting translations
|
LANGUAGE_XX = "xx" # a dummy language for starting translations
|
||||||
|
|
||||||
|
|
||||||
@ -800,8 +800,8 @@ def clean_opts(options):
|
|||||||
"** Warning: --tab-side with 'flip' implies 2 tabs. Setting --tab-number to 2 **"
|
"** Warning: --tab-side with 'flip' implies 2 tabs. Setting --tab-number to 2 **"
|
||||||
)
|
)
|
||||||
options.tab_number = (
|
options.tab_number = (
|
||||||
2
|
2 # alternating left and right with a flip, so override tab_number
|
||||||
) # alternating left and right with a flip, so override tab_number
|
)
|
||||||
options.flip = True
|
options.flip = True
|
||||||
else:
|
else:
|
||||||
options.flip = False
|
options.flip = False
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user