Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
    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)