Additive sides to a border?

Issue #374 resolved
girl spider created an issue

Hi,

I'm trying to write a function to create an outside border to a range of cells.

Then I realized that if I use style.copy() function and specify a border, the new border replaces the old border.

What if I want to keep the original border style's sides (may be top and bottom has "thick" line) and all I want to do is add a side to it (and I do not know what the original sides are).

What should I do?

Comments (3)

  1. CharlieC

    The mailing list is the proper place for questions. Borders also have a .copy() method which is probably what you need:

    b1 = Border(…)
    b2 = b1.copy(left=Side(…))
    
  2. Log in to comment