File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ def create(self, parent):
3232 parent .addchild (self )
3333 self .parent = parent
3434 self .child = 0 # No child yet
35+ return self
3536 #
3637 # Downcalls from parent to child
3738 #
@@ -55,9 +56,15 @@ def setbounds(self, bounds):
5556 raise Error , 'setbounds w/o child'
5657 else :
5758 self .child .setbounds (bounds )
59+ def realize (self ):
60+ if self .child :
61+ self .child .realize ()
5862 def draw (self , args ):
5963 if self .child :
6064 self .child .draw (args )
65+ def altdraw (self , args ):
66+ if self .child :
67+ self .child .altdraw (args )
6168 #
6269 # Downcalls only made after certain upcalls
6370 #
@@ -83,10 +90,17 @@ def need_timer(self, child):
8390 def no_timer (self , child ):
8491 self .parent .no_timer (self )
8592 #
93+ def need_altdraw (self , child ):
94+ self .parent .need_altdraw (self )
95+ def no_altdraw (self , child ):
96+ self .parent .no_altdraw (self )
97+ #
8698 def begindrawing (self ):
8799 return self .parent .begindrawing ()
88100 def beginmeasuring (self ):
89101 return self .parent .beginmeasuring ()
102+ def getwindow (self ):
103+ return self .parent .getwindow ()
90104 #
91105 def change (self , area ):
92106 self .parent .change (area )
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ def create(self, parent):
3232 parent .addchild (self )
3333 self .parent = parent
3434 self .child = 0 # No child yet
35+ return self
3536 #
3637 # Downcalls from parent to child
3738 #
@@ -55,9 +56,15 @@ def setbounds(self, bounds):
5556 raise Error , 'setbounds w/o child'
5657 else :
5758 self .child .setbounds (bounds )
59+ def realize (self ):
60+ if self .child :
61+ self .child .realize ()
5862 def draw (self , args ):
5963 if self .child :
6064 self .child .draw (args )
65+ def altdraw (self , args ):
66+ if self .child :
67+ self .child .altdraw (args )
6168 #
6269 # Downcalls only made after certain upcalls
6370 #
@@ -83,10 +90,17 @@ def need_timer(self, child):
8390 def no_timer (self , child ):
8491 self .parent .no_timer (self )
8592 #
93+ def need_altdraw (self , child ):
94+ self .parent .need_altdraw (self )
95+ def no_altdraw (self , child ):
96+ self .parent .no_altdraw (self )
97+ #
8698 def begindrawing (self ):
8799 return self .parent .begindrawing ()
88100 def beginmeasuring (self ):
89101 return self .parent .beginmeasuring ()
102+ def getwindow (self ):
103+ return self .parent .getwindow ()
90104 #
91105 def change (self , area ):
92106 self .parent .change (area )
You can’t perform that action at this time.
0 commit comments