(self, label, command, isdef=0)
return b
Return command button gridded in command frame.
Return command button gridded in command frame.
Return command button gridded in command frame .
def make_button(self, label, command, isdef=0):
        "Return command button gridded in command frame."
        b = Button(self.buttonframe,
                   text=label, command=command,
                   default=isdef and "active" or "normal")
        cols,rows=self.buttonframe.grid_size()
        b.grid(pady=1,row=rows,column=0,sticky="ew")
        self.buttonframe.grid(rowspan=rows+1)
        return b
def make_button ( self , label , command , isdef = 0 ) : b = Button ( self . buttonframe , text = label , command = command , default = isdef and "active" or "normal" ) cols , rows = self . buttonframe . grid_size ( ) b . grid ( pady = 1 , row = rows , column = 0 , sticky = "ew" ) self . buttonframe . grid ( rowspan = rows + 1 ) return b