class SideFrame(BaseFrame): def _init(self): self.add_button = ttk.Button(self, text='+') self.add_button.grid(column=0, row=0, sticky='NW') self.save_button = ttk.Button(self, text='save') self.save_button.grid(column=0, row=1, sticky='NW') self.info_label = InfoLabel(self, width=20, wraplength=150) self.info_label.grid(column=0, row=2) # ttk.Frame(self,width=100).grid(column=0, row=3) def set_info(self, info): self.info_label.set(info)
def _init(self): self.add_button = ttk.Button(self, text='+') self.add_button.grid(column=0, row=0, sticky='NW') self.save_button = ttk.Button(self, text='save') self.save_button.grid(column=0, row=1, sticky='NW') self.info_label = InfoLabel(self, width=20, wraplength=150) self.info_label.grid(column=0, row=2)