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
1458055a
Commit
1458055a
authored
Aug 16, 1991
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minsize --> getminsize
parent
2e6859cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
Lib/lib-stdwin/FormSplit.py
Lib/lib-stdwin/FormSplit.py
+6
-4
Lib/stdwin/FormSplit.py
Lib/stdwin/FormSplit.py
+6
-4
No files found.
Lib/lib-stdwin/FormSplit.py
View file @
1458055a
...
@@ -20,12 +20,13 @@ class FormSplit() = Split():
...
@@ -20,12 +20,13 @@ class FormSplit() = Split():
self
.
last_child
=
None
self
.
last_child
=
None
return
Split
.
create
(
self
,
parent
)
return
Split
.
create
(
self
,
parent
)
#
#
def
minsize
(
self
,
m
):
def
getminsize
(
self
,
(
m
,
sugg_size
)
):
max_width
,
max_height
=
0
,
0
max_width
,
max_height
=
0
,
0
for
c
in
self
.
children
:
for
c
in
self
.
children
:
c
.
form_width
,
c
.
form_height
=
c
.
minsize
(
m
)
c
.
form_width
,
c
.
form_height
=
c
.
getminsize
(
m
,
(
0
,
0
)
)
max_width
=
max
(
max_width
,
c
.
form_width
+
c
.
form_left
)
max_width
=
max
(
max_width
,
c
.
form_width
+
c
.
form_left
)
max_height
=
max
(
max_height
,
c
.
form_height
+
c
.
form_top
)
max_height
=
max
(
max_height
,
\
c
.
form_height
+
c
.
form_top
)
return
max_width
,
max_height
return
max_width
,
max_height
#
#
def
getbounds
(
self
):
def
getbounds
(
self
):
...
@@ -47,7 +48,8 @@ class FormSplit() = Split():
...
@@ -47,7 +48,8 @@ class FormSplit() = Split():
def
addchild
(
self
,
child
):
def
addchild
(
self
,
child
):
if
self
.
last_child
:
if
self
.
last_child
:
width
,
height
=
\
width
,
height
=
\
self
.
last_child
.
minsize
(
self
.
beginmeasuring
())
self
.
last_child
.
getminsize
(
self
.
beginmeasuring
(),
\
(
0
,
0
))
self
.
next_top
=
self
.
next_top
+
height
self
.
next_top
=
self
.
next_top
+
height
child
.
form_left
=
self
.
next_left
child
.
form_left
=
self
.
next_left
child
.
form_top
=
self
.
next_top
child
.
form_top
=
self
.
next_top
...
...
Lib/stdwin/FormSplit.py
View file @
1458055a
...
@@ -20,12 +20,13 @@ class FormSplit() = Split():
...
@@ -20,12 +20,13 @@ class FormSplit() = Split():
self
.
last_child
=
None
self
.
last_child
=
None
return
Split
.
create
(
self
,
parent
)
return
Split
.
create
(
self
,
parent
)
#
#
def
minsize
(
self
,
m
):
def
getminsize
(
self
,
(
m
,
sugg_size
)
):
max_width
,
max_height
=
0
,
0
max_width
,
max_height
=
0
,
0
for
c
in
self
.
children
:
for
c
in
self
.
children
:
c
.
form_width
,
c
.
form_height
=
c
.
minsize
(
m
)
c
.
form_width
,
c
.
form_height
=
c
.
getminsize
(
m
,
(
0
,
0
)
)
max_width
=
max
(
max_width
,
c
.
form_width
+
c
.
form_left
)
max_width
=
max
(
max_width
,
c
.
form_width
+
c
.
form_left
)
max_height
=
max
(
max_height
,
c
.
form_height
+
c
.
form_top
)
max_height
=
max
(
max_height
,
\
c
.
form_height
+
c
.
form_top
)
return
max_width
,
max_height
return
max_width
,
max_height
#
#
def
getbounds
(
self
):
def
getbounds
(
self
):
...
@@ -47,7 +48,8 @@ class FormSplit() = Split():
...
@@ -47,7 +48,8 @@ class FormSplit() = Split():
def
addchild
(
self
,
child
):
def
addchild
(
self
,
child
):
if
self
.
last_child
:
if
self
.
last_child
:
width
,
height
=
\
width
,
height
=
\
self
.
last_child
.
minsize
(
self
.
beginmeasuring
())
self
.
last_child
.
getminsize
(
self
.
beginmeasuring
(),
\
(
0
,
0
))
self
.
next_top
=
self
.
next_top
+
height
self
.
next_top
=
self
.
next_top
+
height
child
.
form_left
=
self
.
next_left
child
.
form_left
=
self
.
next_left
child
.
form_top
=
self
.
next_top
child
.
form_top
=
self
.
next_top
...
...
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