Bläddra i källkod

Styles to all Boxes, and alert is implemented.

Steve Thielemann 5 år sedan
förälder
incheckning
ee42b18b19
1 ändrade filer med 2 tillägg och 4 borttagningar
  1. 2 4
      boxes.py

+ 2 - 4
boxes.py

@@ -120,11 +120,9 @@ class Boxes(object):
 
         style=0  Is double lines.  
         start_nl Should we start the top with a newline?
-
-        FUTURE:  Support all line types.
         """
         self.size = size
-        self.style = 0  # style
+        self.style = style
         self.color = color
         self.start_nl = start_nl
 
@@ -227,7 +225,7 @@ class Boxes(object):
             length = len(message)
         box_size = length + pad * 2
         boxpad = " " * pad
-        box = Boxes(box_size, color=color, start_nl=False, style=style)
+        box = Boxes(box_size, color=color, style=style, start_nl=False)
         msg = "{0}{1}{2}{3}".format(color, boxpad, message, boxpad)
 
         # How much pad to add to the left side?