Skip to content

Commit

Permalink
not sure why black changes got missed
Browse files Browse the repository at this point in the history
  • Loading branch information
sumpfork committed Apr 21, 2020
1 parent 5456e28 commit 4ef7817
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 39 deletions.
62 changes: 27 additions & 35 deletions src/domdiv/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,16 @@ class CardPlot(object):
) # location & directional constants

tabNumber = 1 # Number of different tab locations
tabIncrement = (
0
) # Either 1, 0, or -1. Used to select next tab. This can change if tabSerpentine.
tabIncrement = 0 # Either 1, 0, or -1. Used to select next tab. This can change if tabSerpentine.
tabIncrementStart = 0 # Starting value of tabIncrement
tabStart = 1 # The starting tab location.
tabStartSide = LEFT # The starting side for the tabs
tabSerpentine = (
False
) # What to do at the end of a line of tabs. False = start over. True = reverses direction.
tabSerpentine = 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
cardWidth = (
0
) # Width of just the divider, with no extra padding/spacing. NEEDS TO BE SET.
cardHeight = (
0
) # Height of just the divider, with no extra padding/spacing or tab. NEEDS TO BE SET.
0 # Width of just the divider, with no extra padding/spacing. NEEDS TO BE SET.
)
cardHeight = 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.
tabHeight = 0 # Height of the tab. NEEDS TO BE SET.
wrapper = False # If the divider is a sleeve/wrapper.
Expand Down Expand Up @@ -134,36 +128,26 @@ def __init__(
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.stackHeight = (
stackHeight
) # The height of a stack of these cards. Used for interleaving.
self.tabIndex = (
tabIndex
) # Tab location index. Starts at 1 and goes up to CardPlot.tabNumber
stackHeight # The height of a stack of these cards. Used for interleaving.
)
self.tabIndex = tabIndex # Tab location index. Starts at 1 and goes up to CardPlot.tabNumber
self.page = page # holds page number of this printed card
self.textTypeFront = (
textTypeFront
) # What card text to put on the front of the divider
textTypeFront # What card text to put on the front of the divider
)
self.textTypeBack = (
textTypeBack
) # What card text to put on the back of the divider
self.cropOnTop = (
cropOnTop
) # When true, cropmarks needed along TOP *printed* edge of the card
self.cropOnBottom = (
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
textTypeBack # What card text to put on the back of the divider
)
self.cropOnTop = cropOnTop # When true, cropmarks needed along TOP *printed* edge of the card
self.cropOnBottom = 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
if self.tabIndex == 0:
self.tabIndexBack = (
0
) # Exact Centre special case, so swapping is still exact centre
0 # Exact Centre special case, so swapping is still exact centre
)
elif CardPlot.tabNumber == 1:
self.tabIndex = (
self.tabIndexBack
Expand Down Expand Up @@ -372,7 +356,15 @@ def __init__(self, canvas, x=0, y=0, cropmarkLength=-1, cropmarkSpacing=-1):
self.canvas = canvas
self.x = x
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
) # Constants
if cropmarkLength < 0:
Expand Down
8 changes: 4 additions & 4 deletions src/domdiv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
ORDER_CHOICES = ["expansion", "global", "colour", "cost"]

LANGUAGE_DEFAULT = (
"en_us"
) # the primary language used if a language's parts are missing
"en_us" # the primary language used if a language's parts are missing
)
LANGUAGE_XX = "xx" # a dummy language for starting translations


Expand Down Expand Up @@ -800,8 +800,8 @@ def clean_opts(options):
"** Warning: --tab-side with 'flip' implies 2 tabs. Setting --tab-number to 2 **"
)
options.tab_number = (
2
) # alternating left and right with a flip, so override tab_number
2 # alternating left and right with a flip, so override tab_number
)
options.flip = True
else:
options.flip = False
Expand Down

0 comments on commit 4ef7817

Please sign in to comment.