summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-08-16 13:22:08 (GMT)
committerGuido van Rossum <guido@python.org>1991-08-16 13:22:08 (GMT)
commite11d4ccbb6abd2a1847c66dee3225318623adf17 (patch)
tree119cc34c7efaae197dd161c23b9492dc43defa06 /Lib
parent3c8045acf1f9658577c70b1373195916024e1b50 (diff)
downloadcpython-e11d4ccbb6abd2a1847c66dee3225318623adf17.zip
cpython-e11d4ccbb6abd2a1847c66dee3225318623adf17.tar.gz
cpython-e11d4ccbb6abd2a1847c66dee3225318623adf17.tar.bz2
minsize -> getminsize
Keyboard interface
Diffstat (limited to 'Lib')
-rw-r--r--Lib/lib-stdwin/TransParent.py21
-rwxr-xr-xLib/stdwin/TransParent.py21
2 files changed, 34 insertions, 8 deletions
diff --git a/Lib/lib-stdwin/TransParent.py b/Lib/lib-stdwin/TransParent.py
index fa49b2c..5ccebca 100644
--- a/Lib/lib-stdwin/TransParent.py
+++ b/Lib/lib-stdwin/TransParent.py
@@ -31,7 +31,7 @@ class TransParent() = ManageOneChild():
def create(self, parent):
parent.addchild(self)
self.parent = parent
- self.child = 0 # No child yet
+ self.child = None # No child yet
return self
#
# Downcalls from parent to child
@@ -41,11 +41,12 @@ class TransParent() = ManageOneChild():
if self.child: self.child.destroy()
del self.child
#
- def minsize(self, m):
+ def getminsize(self, args):
if not self.child:
- return 0, 0
+ m, size = args
+ return size
else:
- return self.child.minsize(m)
+ return self.child.getminsize(args)
def getbounds(self, bounds):
if not self.child:
raise Error, 'getbounds w/o child'
@@ -75,6 +76,13 @@ class TransParent() = ManageOneChild():
def mouse_up(self, detail):
if self.child: self.child.mouse_up(detail)
#
+ def keybd(self, type_detail):
+ self.child.keybd(type_detail)
+ def activate(self):
+ self.child.activate()
+ def deactivate(self):
+ self.child.deactivate()
+ #
def timer(self):
if self.child: self.child.timer()
#
@@ -95,6 +103,11 @@ class TransParent() = ManageOneChild():
def no_altdraw(self, child):
self.parent.no_altdraw(self)
#
+ def need_keybd(self, child):
+ self.parent.need_keybd(self)
+ def no_keybd(self, child):
+ self.parent.no_keybd(self)
+ #
def begindrawing(self):
return self.parent.begindrawing()
def beginmeasuring(self):
diff --git a/Lib/stdwin/TransParent.py b/Lib/stdwin/TransParent.py
index fa49b2c..5ccebca 100755
--- a/Lib/stdwin/TransParent.py
+++ b/Lib/stdwin/TransParent.py
@@ -31,7 +31,7 @@ class TransParent() = ManageOneChild():
def create(self, parent):
parent.addchild(self)
self.parent = parent
- self.child = 0 # No child yet
+ self.child = None # No child yet
return self
#
# Downcalls from parent to child
@@ -41,11 +41,12 @@ class TransParent() = ManageOneChild():
if self.child: self.child.destroy()
del self.child
#
- def minsize(self, m):
+ def getminsize(self, args):
if not self.child:
- return 0, 0
+ m, size = args
+ return size
else:
- return self.child.minsize(m)
+ return self.child.getminsize(args)
def getbounds(self, bounds):
if not self.child:
raise Error, 'getbounds w/o child'
@@ -75,6 +76,13 @@ class TransParent() = ManageOneChild():
def mouse_up(self, detail):
if self.child: self.child.mouse_up(detail)
#
+ def keybd(self, type_detail):
+ self.child.keybd(type_detail)
+ def activate(self):
+ self.child.activate()
+ def deactivate(self):
+ self.child.deactivate()
+ #
def timer(self):
if self.child: self.child.timer()
#
@@ -95,6 +103,11 @@ class TransParent() = ManageOneChild():
def no_altdraw(self, child):
self.parent.no_altdraw(self)
#
+ def need_keybd(self, child):
+ self.parent.need_keybd(self)
+ def no_keybd(self, child):
+ self.parent.no_keybd(self)
+ #
def begindrawing(self):
return self.parent.begindrawing()
def beginmeasuring(self):