Skip to content

Commit

Permalink
feature: allow up to 9 plate high bricks
Browse files Browse the repository at this point in the history
  • Loading branch information
vectronic committed Mar 15, 2020
1 parent edf0645 commit 9cb37de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Legify/Brick.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def _parse_dimensions(self, dimensions):
raise Exception("dimensions[\"depth\"] must be: 1..20")
if width < 1 or width > 20:
raise Exception("dimensions[\"width\"] must be: 1..20")
if height < 1 or height > 3:
raise Exception("dimensions[\"height\"] must be: 1..3")
if height < 1 or height > 9:
raise Exception("dimensions[\"height\"] must be: 1..9")

self.width = width
self.depth = depth
Expand Down
4 changes: 2 additions & 2 deletions Legify/Dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _construct_dimensions_widgets(self):

dimensions_height_spinbox = QtGui.QSpinBox()
dimensions_height_spinbox.setMinimum(1)
dimensions_height_spinbox.setMaximum(3)
dimensions_height_spinbox.setMaximum(9)
dimensions_height_spinbox.setFont(self.normal_font)
dimensions_height_spinbox.setMinimumWidth(70)

Expand All @@ -79,7 +79,7 @@ def _construct_dimensions_widgets(self):
dimensions_depth_note_label.setMinimumWidth(25)

dimensions_height_note_label = QtGui.QLabel(u"ℹ")
dimensions_height_note_label.setToolTip("1..3 plates")
dimensions_height_note_label.setToolTip("1..9 plates")
dimensions_height_note_label.setFont(self.note_font)
dimensions_height_note_label.setMinimumWidth(25)

Expand Down

0 comments on commit 9cb37de

Please # to comment.