Total Complexity | 6 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | from sys import version_info |
||
12 | class CustomFrame(tk.Frame): |
||
13 | def __init__(self, *args, **kwargs): |
||
14 | super(CustomFrame, self).__init__(*args, **kwargs) |
||
15 | self.bind("<Configure>", self.configure) |
||
16 | self.drawn = [] |
||
17 | self.height = 0 |
||
18 | self.width = 0 |
||
19 | if "height" in kwargs: |
||
20 | self.height = kwargs["height"] |
||
21 | if "width" in kwargs: |
||
22 | self.width = kwargs["width"] |
||
23 | |||
24 | def configure(self, event): |
||
25 | self.height = event.height |
||
26 | self.width = event.width |
||
27 | self.informHeight() |
||
28 | |||
29 | def informHeight(self): |
||
30 | pass |
||
31 | |||
32 | def grid(self, *args, **kwargs): |
||
33 | pass |
||
34 | |||
47 |