| Total Complexity | 6 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | import tkinter |
||
| 4 | class CustomFrame(tkinter.Frame): |
||
| 5 | def __init__(self, *args, **kwargs): |
||
| 6 | super(CustomFrame, self).__init__(*args, **kwargs) |
||
| 7 | self.bind("<Configure>", self.configure) |
||
| 8 | self.drawn = [] |
||
| 9 | self.height = 0 |
||
| 10 | self.width = 0 |
||
| 11 | if "height" in kwargs: |
||
| 12 | self.height = kwargs["height"] |
||
| 13 | if "width" in kwargs: |
||
| 14 | self.width = kwargs["width"] |
||
| 15 | |||
| 16 | def configure(self, event): |
||
| 17 | self.height = event.height |
||
| 18 | self.width = event.width |
||
| 19 | self.informHeight() |
||
| 20 | |||
| 21 | def informHeight(self): |
||
| 22 | pass |
||
| 23 | |||
| 24 | def grid(self, *args, **kwargs): |
||
| 25 | pass |
||
| 26 | |||
| 39 |