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