Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e6afe6a4
Commit
e6afe6a4
authored
Aug 16, 1991
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial revision
parent
8cf301e7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
0 deletions
+82
-0
Lib/lib-stdwin/BoxParent.py
Lib/lib-stdwin/BoxParent.py
+41
-0
Lib/stdwin/BoxParent.py
Lib/stdwin/BoxParent.py
+41
-0
No files found.
Lib/lib-stdwin/BoxParent.py
0 → 100644
View file @
e6afe6a4
from
TransParent
import
TransParent
class
BoxParent
()
=
TransParent
():
#
def
create
(
self
,
(
parent
,
(
dh
,
dv
))):
self
=
TransParent
.
create
(
self
,
parent
)
self
.
dh
=
dh
self
.
dv
=
dv
return
self
#
def
getminsize
(
self
,
(
m
,
(
width
,
height
))):
width
=
max
(
0
,
width
-
2
*
self
.
dh
)
height
=
max
(
0
,
height
-
2
*
self
.
dv
)
width
,
height
=
self
.
child
.
getminsize
(
m
,
(
width
,
height
))
return
width
+
2
*
self
.
dh
,
height
+
2
*
self
.
dv
#
def
setbounds
(
self
,
bounds
):
(
left
,
top
),
(
right
,
bottom
)
=
bounds
self
.
bounds
=
bounds
left
=
min
(
right
,
left
+
self
.
dh
)
top
=
min
(
bottom
,
top
+
self
.
dv
)
right
=
max
(
left
,
right
-
self
.
dh
)
bottom
=
max
(
top
,
bottom
-
self
.
dv
)
self
.
innerbounds
=
(
left
,
top
),
(
right
,
bottom
)
self
.
child
.
setbounds
(
self
.
innerbounds
)
#
def
getbounds
(
self
):
return
self
.
bounds
#
def
draw
(
self
,
args
):
d
,
area
=
args
(
left
,
top
),
(
right
,
bottom
)
=
self
.
bounds
left
=
left
+
1
top
=
top
+
1
right
=
right
-
1
bottom
=
bottom
-
1
d
.
box
((
left
,
top
),
(
right
,
bottom
))
TransParent
.
draw
(
self
,
args
)
# XXX clip to innerbounds?
#
# XXX should scroll clip to innerbounds???
# XXX currently the only user restricts itself to child's bounds
Lib/stdwin/BoxParent.py
0 → 100755
View file @
e6afe6a4
from
TransParent
import
TransParent
class
BoxParent
()
=
TransParent
():
#
def
create
(
self
,
(
parent
,
(
dh
,
dv
))):
self
=
TransParent
.
create
(
self
,
parent
)
self
.
dh
=
dh
self
.
dv
=
dv
return
self
#
def
getminsize
(
self
,
(
m
,
(
width
,
height
))):
width
=
max
(
0
,
width
-
2
*
self
.
dh
)
height
=
max
(
0
,
height
-
2
*
self
.
dv
)
width
,
height
=
self
.
child
.
getminsize
(
m
,
(
width
,
height
))
return
width
+
2
*
self
.
dh
,
height
+
2
*
self
.
dv
#
def
setbounds
(
self
,
bounds
):
(
left
,
top
),
(
right
,
bottom
)
=
bounds
self
.
bounds
=
bounds
left
=
min
(
right
,
left
+
self
.
dh
)
top
=
min
(
bottom
,
top
+
self
.
dv
)
right
=
max
(
left
,
right
-
self
.
dh
)
bottom
=
max
(
top
,
bottom
-
self
.
dv
)
self
.
innerbounds
=
(
left
,
top
),
(
right
,
bottom
)
self
.
child
.
setbounds
(
self
.
innerbounds
)
#
def
getbounds
(
self
):
return
self
.
bounds
#
def
draw
(
self
,
args
):
d
,
area
=
args
(
left
,
top
),
(
right
,
bottom
)
=
self
.
bounds
left
=
left
+
1
top
=
top
+
1
right
=
right
-
1
bottom
=
bottom
-
1
d
.
box
((
left
,
top
),
(
right
,
bottom
))
TransParent
.
draw
(
self
,
args
)
# XXX clip to innerbounds?
#
# XXX should scroll clip to innerbounds???
# XXX currently the only user restricts itself to child's bounds
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment