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
13340c6a
Commit
13340c6a
authored
Mar 07, 2000
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed multi-arg appends.
parent
dade0ad3
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
15 additions
and
14 deletions
+15
-14
Mac/Demo/PICTbrowse/ICONbrowse.py
Mac/Demo/PICTbrowse/ICONbrowse.py
+1
-1
Mac/Demo/PICTbrowse/PICTbrowse.py
Mac/Demo/PICTbrowse/PICTbrowse.py
+1
-1
Mac/Demo/PICTbrowse/PICTbrowse2.py
Mac/Demo/PICTbrowse/PICTbrowse2.py
+1
-1
Mac/Demo/PICTbrowse/cicnbrowse.py
Mac/Demo/PICTbrowse/cicnbrowse.py
+1
-1
Mac/Demo/PICTbrowse/oldPICTbrowse.py
Mac/Demo/PICTbrowse/oldPICTbrowse.py
+1
-1
Mac/Demo/speech/grail.py
Mac/Demo/speech/grail.py
+1
-1
Mac/Lib/FrameWork.py
Mac/Lib/FrameWork.py
+3
-2
Mac/Tools/IDE/PythonIDEMain.py
Mac/Tools/IDE/PythonIDEMain.py
+1
-1
Mac/Tools/IDE/Wbase.py
Mac/Tools/IDE/Wbase.py
+1
-1
Mac/Tools/twit/mactwit_browser.py
Mac/Tools/twit/mactwit_browser.py
+2
-2
Mac/scripts/cfmfile.py
Mac/scripts/cfmfile.py
+1
-1
Mac/scripts/gensuitemodule.py
Mac/scripts/gensuitemodule.py
+1
-1
No files found.
Mac/Demo/PICTbrowse/ICONbrowse.py
View file @
13340c6a
...
...
@@ -70,7 +70,7 @@ class ICONbrowse(FrameWork.Application):
finally
:
Res
.
SetResLoad
(
1
)
id
,
type
,
name
=
r
.
GetResInfo
()
rv
.
append
(
id
,
name
)
rv
.
append
(
(
id
,
name
)
)
return
rv
class
ICONwindow
(
FrameWork
.
Window
):
...
...
Mac/Demo/PICTbrowse/PICTbrowse.py
View file @
13340c6a
...
...
@@ -65,7 +65,7 @@ class PICTbrowse(FrameWork.Application):
finally
:
Res
.
SetResLoad
(
1
)
id
,
type
,
name
=
r
.
GetResInfo
()
rv
.
append
(
id
,
name
)
rv
.
append
(
(
id
,
name
)
)
return
rv
class
PICTwindow
(
FrameWork
.
Window
):
...
...
Mac/Demo/PICTbrowse/PICTbrowse2.py
View file @
13340c6a
...
...
@@ -69,7 +69,7 @@ class PICTbrowse(FrameWork.Application):
finally
:
Res
.
SetResLoad
(
1
)
id
,
type
,
name
=
r
.
GetResInfo
()
rv
.
append
(
id
,
name
)
rv
.
append
(
(
id
,
name
)
)
return
rv
class
PICTwindow
(
FrameWork
.
Window
):
...
...
Mac/Demo/PICTbrowse/cicnbrowse.py
View file @
13340c6a
...
...
@@ -70,7 +70,7 @@ class CIconbrowse(FrameWork.Application):
finally
:
Res
.
SetResLoad
(
1
)
id
,
type
,
name
=
r
.
GetResInfo
()
rv
.
append
(
id
,
name
)
rv
.
append
(
(
id
,
name
)
)
return
rv
class
CIconwindow
(
FrameWork
.
Window
):
...
...
Mac/Demo/PICTbrowse/oldPICTbrowse.py
View file @
13340c6a
...
...
@@ -64,7 +64,7 @@ class PICTbrowse(FrameWork.Application):
finally
:
Res
.
SetResLoad
(
1
)
id
,
type
,
name
=
r
.
GetResInfo
()
rv
.
append
(
id
,
name
)
rv
.
append
(
(
id
,
name
)
)
return
rv
class
PICTwindow
(
FrameWork
.
Window
):
...
...
Mac/Demo/speech/grail.py
View file @
13340c6a
...
...
@@ -77,7 +77,7 @@ def readscript(file):
for
i
in
range
(
len
(
lines
)):
tp
,
data
=
parseline
(
lines
[
i
])
if
tp
==
NEWSCENE
:
acts
.
append
(
actor_dict
.
keys
(),
lines
[
prev_act
:
i
]
)
acts
.
append
(
(
actor_dict
.
keys
(),
lines
[
prev_act
:
i
])
)
prev_act
=
i
actor_dict
=
{}
elif
tp
==
TEXT
:
...
...
Mac/Lib/FrameWork.py
View file @
13340c6a
...
...
@@ -512,6 +512,7 @@ class Menu:
def
delete
(
self
):
self
.
bar
.
delmenu
(
self
.
id
)
del
self
.
bar
.
menus
[
self
.
id
]
self
.
menu
.
DisposeMenu
()
del
self
.
bar
del
self
.
items
del
self
.
menu
...
...
@@ -520,7 +521,7 @@ class Menu:
def
additem
(
self
,
label
,
shortcut
=
None
,
callback
=
None
,
kind
=
None
):
self
.
menu
.
AppendMenu
(
'x'
)
# add a dummy string
self
.
items
.
append
(
label
,
shortcut
,
callback
,
kind
)
self
.
items
.
append
(
(
label
,
shortcut
,
callback
,
kind
)
)
item
=
len
(
self
.
items
)
self
.
menu
.
SetMenuItemText
(
item
,
label
)
# set the actual text
if
shortcut
and
type
(
shortcut
)
==
type
(()):
...
...
@@ -547,7 +548,7 @@ class Menu:
def
addseparator
(
self
):
self
.
menu
.
AppendMenu
(
'(-'
)
self
.
items
.
append
(
''
,
None
,
None
,
'separator'
)
self
.
items
.
append
(
(
''
,
None
,
None
,
'separator'
)
)
def
addsubmenu
(
self
,
label
,
title
=
''
):
sub
=
Menu
(
self
.
bar
,
title
,
-
1
)
...
...
Mac/Tools/IDE/PythonIDEMain.py
View file @
13340c6a
...
...
@@ -204,7 +204,7 @@ class PythonIDE(Wapplication.Application):
title
=
window
.
GetWTitle
()
if
not
title
:
title
=
"<no title>"
windows
.
append
(
title
,
window
)
windows
.
append
(
(
title
,
window
)
)
windows
.
sort
()
for
title
,
window
in
windows
:
if
title
==
"Python Interactive"
:
# ugly but useful hack by Joe Strout
...
...
Mac/Tools/IDE/Wbase.py
View file @
13340c6a
...
...
@@ -490,7 +490,7 @@ class HorizontalPanes(Widget):
for
panesize
in
panesizes
:
if
current
:
self
.
_gutters
.
append
(
current
)
self
.
_panesizes
.
append
(
current
,
current
+
panesize
)
self
.
_panesizes
.
append
(
(
current
,
current
+
panesize
)
)
current
=
current
+
panesize
self
.
makepanebounds
()
...
...
Mac/Tools/twit/mactwit_browser.py
View file @
13340c6a
...
...
@@ -300,7 +300,7 @@ class VarBrowser(FrameWork.DialogWindow):
self
.
scroll
(
-
1
)
point
=
(
0
,
0
)
ok
,
point
=
self
.
lists
[
0
].
list
.
LGetSelect
(
1
,
point
)
self
.
leftover
.
append
(
point
,
self
.
lists
[
0
].
content
,
self
.
lists
[
0
].
title
,
self
.
lists
[
0
].
active
)
self
.
leftover
.
append
(
(
point
,
self
.
lists
[
0
].
content
,
self
.
lists
[
0
].
title
,
self
.
lists
[
0
].
active
)
)
for
i
in
range
(
len
(
self
.
lists
)
-
1
):
point
=
(
0
,
0
)
ok
,
point
=
self
.
lists
[
i
+
1
].
list
.
LGetSelect
(
1
,
point
)
...
...
@@ -331,7 +331,7 @@ class VarBrowser(FrameWork.DialogWindow):
if
self
.
lists
[
-
1
].
content
<>
None
:
point
=
(
0
,
0
)
ok
,
point
=
self
.
lists
[
-
1
].
list
.
LGetSelect
(
1
,
point
)
self
.
rightover
.
append
(
point
,
self
.
lists
[
-
1
].
content
,
self
.
lists
[
-
1
].
title
,
self
.
lists
[
-
1
].
active
)
self
.
rightover
.
append
(
(
point
,
self
.
lists
[
-
1
].
content
,
self
.
lists
[
-
1
].
title
,
self
.
lists
[
-
1
].
active
)
)
for
i
in
range
(
len
(
self
.
lists
)
-
1
,
0
,
-
1
):
point
=
(
0
,
0
)
ok
,
point
=
self
.
lists
[
i
-
1
].
list
.
LGetSelect
(
1
,
point
)
...
...
Mac/scripts/cfmfile.py
View file @
13340c6a
...
...
@@ -215,7 +215,7 @@ def mergecfmfiles(inputs, output):
if
(
tp
,
id
)
in
resources_done
:
continue
i
.
saveresto
(
tp
,
id
,
rfork
)
resources_done
.
append
(
tp
,
id
)
resources_done
.
append
(
(
tp
,
id
)
)
def
main
():
list
=
[]
...
...
Mac/scripts/gensuitemodule.py
View file @
13340c6a
...
...
@@ -494,7 +494,7 @@ class ObjectCompiler:
if
not
name
:
self
.
fp
.
write
(
"# XXXX %s element %s not found!!
\
n
"
%
(
cname
,
`ecode`
))
else
:
elist
.
append
(
name
,
ename
)
elist
.
append
(
(
name
,
ename
)
)
self
.
fp
.
write
(
"%s._propdict = {
\
n
"
%
cname
)
for
n
in
plist
:
...
...
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