924d53789ba0ad40158f082839482cbf9060e67c,lib/gui/control_helper.py,AutoFillContainer,__init__,#AutoFillContainer#Any#Any#,486
Before Change
class AutoFillContainer():
A container object that auto-fills columns
def __init__(self, parent, columns):
logger.debug("Initializing: %s: (parent: %s, columns: %s)", self.__class__.__name__,
parent, columns)
self.max_columns = 4
self.single_column_width = self.scale_column_width(288, 9)
self.max_width = self.max_columns * self.single_column_width
self.parent = parent
self.columns = min(columns, self.max_columns)
self._items = 0
self._idx = 0
self._widget_config = [] // Master list of all children in order
self.subframes = self.set_subframes()
logger.debug("Initialized: %s", self.__class__.__name__)
After Change
self._canvas.bind("<Configure>", self.resize_frame)
for option in self.options:
group_frame = self.get_group_frame(option.group)
ctl = ControlBuilder(group_frame["frame"],
option,
label_width=self.label_width,
checkbuttons_frame=group_frame["chkbtns"],
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: deepfakes/faceswap
Commit Name: 924d53789ba0ad40158f082839482cbf9060e67c
Time: 2020-03-10
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/gui/control_helper.py
Class Name: AutoFillContainer
Method Name: __init__
Project Name: facebookresearch/Horizon
Commit Name: d6e18a32df82079b3f0f9a8d32200807909599ef
Time: 2018-07-11
Author: edoardoc@fb.com
File Name: ml/rl/training/ddpg_predictor.py
Class Name: DDPGPredictor
Method Name: __init__
Project Name: deepfakes/faceswap
Commit Name: 924d53789ba0ad40158f082839482cbf9060e67c
Time: 2020-03-10
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/gui/control_helper.py
Class Name: AutoFillContainer
Method Name: __init__
Project Name: pantsbuild/pants
Commit Name: 3f5e994767718a930681d75bd59154525b02cd18
Time: 2014-01-19
Author: benjyw@gmail.com
File Name: src/python/twitter/pants/targets/python_binary.py
Class Name: PythonBinary
Method Name: __init__