annotate Lib/lib-stdwin/Abstract.py @ 6719:faebc1940432 legacy-trunk

Understand -Xlinker option.
author Guido van Rossum <guido@python.org>
date Tue, 02 Dec 1997 20:38:11 +0000
parents 1d06b1499eb9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
64
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
1 # Abstract classes for parents and children.
97
6b75f2a3000d Comment changes.
Guido van Rossum <guido@python.org>
parents: 64
diff changeset
2 #
64
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
3 # Do not use as base class -- this is for documentation only.
97
6b75f2a3000d Comment changes.
Guido van Rossum <guido@python.org>
parents: 64
diff changeset
4 #
6b75f2a3000d Comment changes.
Guido van Rossum <guido@python.org>
parents: 64
diff changeset
5 # Note that the tree must be built top down (create the parent,
6b75f2a3000d Comment changes.
Guido van Rossum <guido@python.org>
parents: 64
diff changeset
6 # then add the children).
6b75f2a3000d Comment changes.
Guido van Rossum <guido@python.org>
parents: 64
diff changeset
7 #
6b75f2a3000d Comment changes.
Guido van Rossum <guido@python.org>
parents: 64
diff changeset
8 # Also note that the creation methods are not standardized --
6b75f2a3000d Comment changes.
Guido van Rossum <guido@python.org>
parents: 64
diff changeset
9 # these have extra parameters dependent on the widget type.
6b75f2a3000d Comment changes.
Guido van Rossum <guido@python.org>
parents: 64
diff changeset
10 # For historical reasons, button creation methods are called
6b75f2a3000d Comment changes.
Guido van Rossum <guido@python.org>
parents: 64
diff changeset
11 # define() while split creation methods are called create().
64
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
12
531
8331076cfe15 New class syntax.
Guido van Rossum <guido@python.org>
parents: 343
diff changeset
13 class AbstractParent:
64
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
14 #
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
15 # Upcalls from child to parent
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
16 #
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
17 def addchild(self, child): unimpl()
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
18 def delchild(self, child): unimpl()
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
19 #
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
20 def need_mouse(self, child): unimpl()
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
21 def no_mouse(self, child): unimpl()
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
22 #
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
23 def need_timer(self, child): unimpl()
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
24 def no_timer(self, child): unimpl()
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
25 #
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
26 # XXX need_kbd, no_kbd; focus???
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
27 #
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
28 def begindrawing(self): return unimpl()
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
29 def beginmeasuring(self): return unimpl()
187
f47d5e9ea264 New: getwindow() parent method and realize() child method.
Guido van Rossum <guido@python.org>
parents: 97
diff changeset
30 def getwindow(self): return unimpl() # Only for very special cases
64
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
31 #
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
32 def change(self, area): unimpl()
1110
1d06b1499eb9 * Got entirely rid of path.py.
Guido van Rossum <guido@python.org>
parents: 531
diff changeset
33 def scroll(self, area, (dh, dv)): unimpl()
64
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
34 def settimer(self, itimer): unimpl()
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
35
531
8331076cfe15 New class syntax.
Guido van Rossum <guido@python.org>
parents: 343
diff changeset
36 class AbstractChild:
64
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
37 #
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
38 # Downcalls from parent to child
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
39 #
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
40 def destroy(self): unimpl()
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
41 #
187
f47d5e9ea264 New: getwindow() parent method and realize() child method.
Guido van Rossum <guido@python.org>
parents: 97
diff changeset
42 def realize(self): return unimpl()
1110
1d06b1499eb9 * Got entirely rid of path.py.
Guido van Rossum <guido@python.org>
parents: 531
diff changeset
43 def getminsize(self, m, (width, height)): return unimpl()
64
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
44 def getbounds(self): return unimpl()
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
45 def setbounds(self, bounds): unimpl()
1110
1d06b1499eb9 * Got entirely rid of path.py.
Guido van Rossum <guido@python.org>
parents: 531
diff changeset
46 def draw(self, d, area): unimpl()
64
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
47 #
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
48 # Downcalls only made after certain upcalls
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
49 #
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
50 def mouse_down(self, detail): unimpl()
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
51 def mouse_move(self, detail): unimpl()
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
52 def mouse_up(self, detail): unimpl()
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
53 #
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
54 def timer(self): unimpl()
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
55
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
56 # A "Split" is a child that manages one or more children.
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
57 # (This terminology is due to DEC SRC, except for CSplits.)
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
58 # A child of a split may be another split, a button, a slider, etc.
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
59 # Certain upcalls and downcalls can be handled transparently, but
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
60 # for others (e.g., all geometry related calls) this is not possible.
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
61
531
8331076cfe15 New class syntax.
Guido van Rossum <guido@python.org>
parents: 343
diff changeset
62 class AbstractSplit(AbstractChild, AbstractParent):
64
a22df52d7749 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
63 pass