def construct(self, **kwargs): """ Construt view. to not fill the view during initialization. 'grid' (obj): Instance of Grid. 'm_frame' (Frame): Tkinter master frame of view. """ # 1. Create new grid in page container. self.grid = Grid(frame=self.f_container, width=self.width, height=self.height, padx=self.padx, pady=self.pady, bg=self.bg) # 2. Get view frame for displayer function self.m_frame = self.grid.master_frame # 3. Construct the view rows self.row_0(action="construct") self.row_1(action="construct") self.row_2(action="construct") self.row_3(action="construct") self.row_4(action="construct") self.row_5(action="construct") self.row_6(action="construct") self.row_7(action="construct")
def construct(self, **kwargs): """ Construt view. 'displayer' (Bool): to not create the view \ during initialization. """ # 2. Create new grid in page container. self.grid = Grid(frame=self.f_container, width=self.width, height=self.height, padx=self.padx, pady=self.pady, bg=self.bg) # 3. Get view frame for displayer function self.m_frame = self.grid.master_frame self.row_0(action="construct") self.row_1(action="construct") self.row_2(action="construct") self.row_3(action="construct")