diff options
author | Guido van Rossum <guido@python.org> | 1991-04-07 13:36:09 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-04-07 13:36:09 (GMT) |
commit | 4f4794a9a0efe3261405875620fd0c2ebca8f7be (patch) | |
tree | 401cd211d784731075d23b47082fc5769ceda620 /Lib | |
parent | aa57a9d7334433912234a2625355ca6bf7698baa (diff) | |
download | cpython-4f4794a9a0efe3261405875620fd0c2ebca8f7be.zip cpython-4f4794a9a0efe3261405875620fd0c2ebca8f7be.tar.gz cpython-4f4794a9a0efe3261405875620fd0c2ebca8f7be.tar.bz2 |
Added alternate drawing, realize and getwindow interfaces
(why not keyboard?)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/lib-stdwin/TransParent.py | 14 | ||||
-rwxr-xr-x | Lib/stdwin/TransParent.py | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/Lib/lib-stdwin/TransParent.py b/Lib/lib-stdwin/TransParent.py index 8cee283..fa49b2c 100644 --- a/Lib/lib-stdwin/TransParent.py +++ b/Lib/lib-stdwin/TransParent.py @@ -32,6 +32,7 @@ class TransParent() = ManageOneChild(): parent.addchild(self) self.parent = parent self.child = 0 # No child yet + return self # # Downcalls from parent to child # @@ -55,9 +56,15 @@ class TransParent() = ManageOneChild(): raise Error, 'setbounds w/o child' else: self.child.setbounds(bounds) + def realize(self): + if self.child: + self.child.realize() def draw(self, args): if self.child: self.child.draw(args) + def altdraw(self, args): + if self.child: + self.child.altdraw(args) # # Downcalls only made after certain upcalls # @@ -83,10 +90,17 @@ class TransParent() = ManageOneChild(): def no_timer(self, child): self.parent.no_timer(self) # + def need_altdraw(self, child): + self.parent.need_altdraw(self) + def no_altdraw(self, child): + self.parent.no_altdraw(self) + # def begindrawing(self): return self.parent.begindrawing() def beginmeasuring(self): return self.parent.beginmeasuring() + def getwindow(self): + return self.parent.getwindow() # def change(self, area): self.parent.change(area) diff --git a/Lib/stdwin/TransParent.py b/Lib/stdwin/TransParent.py index 8cee283..fa49b2c 100755 --- a/Lib/stdwin/TransParent.py +++ b/Lib/stdwin/TransParent.py @@ -32,6 +32,7 @@ class TransParent() = ManageOneChild(): parent.addchild(self) self.parent = parent self.child = 0 # No child yet + return self # # Downcalls from parent to child # @@ -55,9 +56,15 @@ class TransParent() = ManageOneChild(): raise Error, 'setbounds w/o child' else: self.child.setbounds(bounds) + def realize(self): + if self.child: + self.child.realize() def draw(self, args): if self.child: self.child.draw(args) + def altdraw(self, args): + if self.child: + self.child.altdraw(args) # # Downcalls only made after certain upcalls # @@ -83,10 +90,17 @@ class TransParent() = ManageOneChild(): def no_timer(self, child): self.parent.no_timer(self) # + def need_altdraw(self, child): + self.parent.need_altdraw(self) + def no_altdraw(self, child): + self.parent.no_altdraw(self) + # def begindrawing(self): return self.parent.begindrawing() def beginmeasuring(self): return self.parent.beginmeasuring() + def getwindow(self): + return self.parent.getwindow() # def change(self, area): self.parent.change(area) |