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
3fe7526f
Commit
3fe7526f
authored
Apr 09, 2000
by
Just van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added setbound() method, some cleanups (jvr)
parent
88433bbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
Mac/Tools/IDE/Wwindows.py
Mac/Tools/IDE/Wwindows.py
+12
-9
No files found.
Mac/Tools/IDE/Wwindows.py
View file @
3fe7526f
...
...
@@ -78,12 +78,6 @@ class Window(FrameWork.Window, Wbase.SelectableWidget):
def
isvisible
(
self
):
return
self
.
wid
.
IsWindowVisible
()
def
getbounds
(
self
):
if
0
:
#self.isvisible():
self
.
wid
.
GetWindowContentRgn
(
scratchRegion
)
self
.
_globalbounds
=
GetRgnBounds
(
scratchRegion
)
return
self
.
_globalbounds
def
select
(
self
):
self
.
wid
.
SelectWindow
()
# not sure if this is the best place, I need it when
...
...
@@ -143,6 +137,14 @@ class Window(FrameWork.Window, Wbase.SelectableWidget):
def
domenu_close
(
self
,
*
args
):
self
.
close
()
def
getbounds
(
self
):
return
self
.
_globalbounds
def
setbounds
(
self
,
bounds
):
l
,
t
,
r
,
b
=
bounds
self
.
move
(
l
,
t
)
self
.
resize
(
r
-
l
,
b
-
t
)
def
move
(
self
,
x
,
y
=
None
):
"""absolute move"""
if
y
==
None
:
...
...
@@ -150,11 +152,12 @@ class Window(FrameWork.Window, Wbase.SelectableWidget):
self
.
wid
.
MoveWindow
(
x
,
y
,
0
)
def
resize
(
self
,
x
,
y
=
None
):
if
not
self
.
_hasgrowbox
:
return
# hands off!
if
y
==
None
:
x
,
y
=
x
if
self
.
_hasgrowbox
:
self
.
SetPort
()
Win
.
InvalRect
(
self
.
getgrowrect
())
self
.
SetPort
()
Win
.
InvalRect
(
self
.
getgrowrect
())
self
.
wid
.
SizeWindow
(
x
,
y
,
1
)
self
.
_calcbounds
()
...
...
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