| Total Complexity | 2 |
| Total Lines | 11 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | from sys import version_info |
||
| 15 | class TrueFalseWidget(MyWidget): |
||
| 16 | def __init__(self, label): |
||
| 17 | super(TrueFalseWidget, self).__init__(label) |
||
| 18 | self.widget = None |
||
| 19 | self.labelw = None |
||
| 20 | |||
| 21 | def draw(self, root, line): |
||
| 22 | self.widget = tk.Checkbutton(root) |
||
| 23 | self.widget.grid(column=1, row=line, sticky=tk.NSEW) |
||
| 24 | self.labelw = tk.Label(root, text=self.label, justify=tk.LEFT) |
||
| 25 | self.labelw.grid(column=2, row=line, sticky=tk.NSEW) |
||
| 26 | |||
| 36 |