Most of the pep8 changes finished. Be careful, things may be horribly broken.

This commit is contained in:
Storm Dragon
2025-07-03 13:22:00 -04:00
parent 7408951152
commit 21bb9c6083
344 changed files with 6374 additions and 6083 deletions

View File

@ -8,7 +8,7 @@ from fenrirscreenreader.core import debug
import re
class tableManager():
class TableManager():
def __init__(self):
self.headLine = ''
self.defaultSeparators = ['+', ';', '|', ' ']
@ -22,32 +22,32 @@ class tableManager():
def shutdown(self):
pass
def resetTableMode(self):
self.setHeadLine()
def reset_table_mode(self):
self.set_head_line()
def setHeadColumnSep(self, columnSep=''):
def set_head_column_sep(self, columnSep=''):
self.headColumnSep = columnSep
if columnSep == '':
self.noOfHeadLineColumns = 0
else:
self.counNoOfHeadColumns()
self.coun_no_of_head_columns()
def counNoOfHeadColumns(self):
def coun_no_of_head_columns(self):
pass
def searchForHeadColumnSep(self, headLine):
def search_for_head_column_sep(self, headLine):
if ' ' in headLine:
return ' '
return ''
def setRowColumnSep(self, columnSep=''):
def set_row_column_sep(self, columnSep=''):
self.rowColumnSep = columnSep
def setHeadLine(self, headLine=''):
self.setHeadColumnSep()
self.setRowColumnSep()
def set_head_line(self, headLine=''):
self.set_head_column_sep()
self.set_row_column_sep()
if headLine != '':
sep = self.searchForHeadColumnSep(headLine)
sep = self.search_for_head_column_sep(headLine)
if sep != '':
self.headLine = headLine
self.setHeadColumnSep(sep)
self.set_head_column_sep(sep)