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
220d9f14
Commit
220d9f14
authored
Jan 23, 1991
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The parser module is now called paenlparser.
parent
52cea430
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
Lib/irix5/panel.py
Lib/irix5/panel.py
+5
-5
Lib/plat-irix5/panel.py
Lib/plat-irix5/panel.py
+5
-5
No files found.
Lib/irix5/panel.py
View file @
220d9f14
...
...
@@ -152,7 +152,7 @@ def build_actuator(descr):
act
=
pnl
.
mkact
(
type
)
act
.
downfunc
=
act
.
activefunc
=
act
.
upfunc
=
dummy_callback
#
assign_members
(
act
,
descr
[
1
:],
(
'al'
,
'data'
,
'name'
)
,
''
)
assign_members
(
act
,
descr
[
1
:],
[
'al'
,
'data'
,
'name'
]
,
''
)
#
# Treat actuator-specific data
#
...
...
@@ -162,7 +162,7 @@ def build_actuator(descr):
prefix
=
'puck_'
elif
type
=
'mouse'
:
prefix
=
'mouse_'
assign_members
(
act
,
datalist
,
()
,
prefix
)
assign_members
(
act
,
datalist
,
[]
,
prefix
)
#
return
act
,
actuatorname
...
...
@@ -218,7 +218,7 @@ def build_panel(descr):
#
# Assign panel attributes
#
assign_members
(
panel
,
descr
[
1
:],
(
'al'
)
,
''
)
assign_members
(
panel
,
descr
[
1
:],
[
'al'
]
,
''
)
#
# Look for actuator list
#
...
...
@@ -264,8 +264,8 @@ def my_dopanel():
# generated by the Panel Editor.
#
def
defpanellist
(
file
):
import
parser
descrlist
=
parser
.
parse_file
(
open
(
file
,
'r'
))
import
pa
nelpa
rser
descrlist
=
pa
nelpa
rser
.
parse_file
(
open
(
file
,
'r'
))
panellist
=
[]
for
descr
in
descrlist
:
panellist
.
append
(
build_panel
(
descr
))
...
...
Lib/plat-irix5/panel.py
View file @
220d9f14
...
...
@@ -152,7 +152,7 @@ def build_actuator(descr):
act
=
pnl
.
mkact
(
type
)
act
.
downfunc
=
act
.
activefunc
=
act
.
upfunc
=
dummy_callback
#
assign_members
(
act
,
descr
[
1
:],
(
'al'
,
'data'
,
'name'
)
,
''
)
assign_members
(
act
,
descr
[
1
:],
[
'al'
,
'data'
,
'name'
]
,
''
)
#
# Treat actuator-specific data
#
...
...
@@ -162,7 +162,7 @@ def build_actuator(descr):
prefix
=
'puck_'
elif
type
=
'mouse'
:
prefix
=
'mouse_'
assign_members
(
act
,
datalist
,
()
,
prefix
)
assign_members
(
act
,
datalist
,
[]
,
prefix
)
#
return
act
,
actuatorname
...
...
@@ -218,7 +218,7 @@ def build_panel(descr):
#
# Assign panel attributes
#
assign_members
(
panel
,
descr
[
1
:],
(
'al'
)
,
''
)
assign_members
(
panel
,
descr
[
1
:],
[
'al'
]
,
''
)
#
# Look for actuator list
#
...
...
@@ -264,8 +264,8 @@ def my_dopanel():
# generated by the Panel Editor.
#
def
defpanellist
(
file
):
import
parser
descrlist
=
parser
.
parse_file
(
open
(
file
,
'r'
))
import
pa
nelpa
rser
descrlist
=
pa
nelpa
rser
.
parse_file
(
open
(
file
,
'r'
))
panellist
=
[]
for
descr
in
descrlist
:
panellist
.
append
(
build_panel
(
descr
))
...
...
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