MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / justify

Method justify

pydevd_attach_to_process/winappdbg/textio.py:1108–1128  ·  view source on GitHub ↗

Make the text in a column left or right justified. @type column: int @param column: Index of the column. @type direction: int @param direction: C{-1} to justify left, C{1} to justify right. @raise IndexError: Bad column in

(self, column, direction)

Source from the content-addressed store, hash-verified

1106 self.__cols.append(row)
1107
1108 def justify(self, column, direction):
1109 """
1110 Make the text in a column left or right justified.
1111
1112 @type column: int
1113 @param column: Index of the column.
1114
1115 @type direction: int
1116 @param direction:
1117 C{-1} to justify left,
1118 C{1} to justify right.
1119
1120 @raise IndexError: Bad column index.
1121 @raise ValueError: Bad direction value.
1122 """
1123 if direction == -1:
1124 self.__width[column] = abs(self.__width[column])
1125 elif direction == 1:
1126 self.__width[column] = -abs(self.__width[column])
1127 else:
1128 raise ValueError("Bad direction value.")
1129
1130 def getWidth(self):
1131 """

Callers 1

dump_codeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected