def body(self, master, row, columns=DEFAULT_COLUMNS, **kwargs):
"""
Place the required elements using the grid layout method.
Returns the number of rows taken by this element.
"""
self.checkbox = ttk.Checkbutton(master, text=self.text,
variable=self.value)
self.checkbox.grid(row=row, column=0, columnspan=columns, sticky="w")
return 1
评论列表
文章目录