equal
deleted
inserted
replaced
22 # along with this program; if not, write to the Free Software |
22 # along with this program; if not, write to the Free Software |
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
24 |
24 |
25 |
25 |
26 from __future__ import absolute_import |
26 from __future__ import absolute_import |
|
27 from __future__ import division |
27 import re |
28 import re |
28 from builtins import str as text |
29 from builtins import str as text |
29 |
30 |
30 import wx |
31 import wx |
31 import wx.grid |
32 import wx.grid |
139 self.SectionsComments = {} |
140 self.SectionsComments = {} |
140 for section in self.Controler.SECTIONS_NAMES: |
141 for section in self.Controler.SECTIONS_NAMES: |
141 section_comment = " %s section " % (section) |
142 section_comment = " %s section " % (section) |
142 len_headers = EDGE_COLUMN - len(section_comment) |
143 len_headers = EDGE_COLUMN - len(section_comment) |
143 section_comment = \ |
144 section_comment = \ |
144 self.COMMENT_HEADER * (len_headers / 2) + \ |
145 self.COMMENT_HEADER * (len_headers // 2) + \ |
145 section_comment + \ |
146 section_comment + \ |
146 self.COMMENT_HEADER * (len_headers - len_headers / 2) |
147 self.COMMENT_HEADER * (len_headers - len_headers // 2) |
147 |
148 |
148 self.SectionsComments[section] = { |
149 self.SectionsComments[section] = { |
149 "comment": section_comment, |
150 "comment": section_comment, |
150 } |
151 } |
151 |
152 |