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
2f242582
Commit
2f242582
authored
Dec 26, 1991
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ImportError; New class syntax.
parent
9f7a956f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
Lib/lib-stdwin/DirList.py
Lib/lib-stdwin/DirList.py
+6
-6
Lib/stdwin/DirList.py
Lib/stdwin/DirList.py
+6
-6
No files found.
Lib/lib-stdwin/DirList.py
View file @
2f242582
...
...
@@ -5,7 +5,7 @@
try
:
import
posix
,
path
os
=
posix
except
Name
Error
:
except
Import
Error
:
import
mac
,
macpath
os
=
mac
path
=
macpath
...
...
@@ -16,7 +16,7 @@ from Buttons import PushButton
from
WindowParent
import
WindowParent
from
HVSplit
import
HSplit
,
VSplit
class
DirList
(
)
=
VSplit
(
):
class
DirList
(
VSplit
):
#
def
create
(
self
,
(
parent
,
dirname
)):
self
=
VSplit
.
create
(
self
,
parent
)
...
...
@@ -32,7 +32,7 @@ class DirList() = VSplit():
return
self
#
class
DirListWindow
(
)
=
WindowParent
(
):
class
DirListWindow
(
WindowParent
):
#
def
create
(
self
,
dirname
):
self
=
WindowParent
.
create
(
self
,
(
dirname
,
(
0
,
0
)))
...
...
@@ -41,7 +41,7 @@ class DirListWindow() = WindowParent():
return
self
#
class
SubdirButton
(
)
=
PushButton
(
):
class
SubdirButton
(
PushButton
):
#
def
drawpict
(
self
,
d
):
PushButton
.
drawpict
(
self
,
d
)
...
...
@@ -51,13 +51,13 @@ class SubdirButton() = PushButton():
window
=
DirListWindow
().
create
(
self
.
text
)
#
class
FileButton
(
)
=
PushButton
(
):
class
FileButton
(
PushButton
):
#
def
up_trigger
(
self
):
stdwin
.
fleep
()
#
class
ModuleButton
(
)
=
FileButton
(
):
class
ModuleButton
(
FileButton
):
#
def
drawpict
(
self
,
d
):
PushButton
.
drawpict
(
self
,
d
)
...
...
Lib/stdwin/DirList.py
View file @
2f242582
...
...
@@ -5,7 +5,7 @@
try
:
import
posix
,
path
os
=
posix
except
Name
Error
:
except
Import
Error
:
import
mac
,
macpath
os
=
mac
path
=
macpath
...
...
@@ -16,7 +16,7 @@ from Buttons import PushButton
from
WindowParent
import
WindowParent
from
HVSplit
import
HSplit
,
VSplit
class
DirList
(
)
=
VSplit
(
):
class
DirList
(
VSplit
):
#
def
create
(
self
,
(
parent
,
dirname
)):
self
=
VSplit
.
create
(
self
,
parent
)
...
...
@@ -32,7 +32,7 @@ class DirList() = VSplit():
return
self
#
class
DirListWindow
(
)
=
WindowParent
(
):
class
DirListWindow
(
WindowParent
):
#
def
create
(
self
,
dirname
):
self
=
WindowParent
.
create
(
self
,
(
dirname
,
(
0
,
0
)))
...
...
@@ -41,7 +41,7 @@ class DirListWindow() = WindowParent():
return
self
#
class
SubdirButton
(
)
=
PushButton
(
):
class
SubdirButton
(
PushButton
):
#
def
drawpict
(
self
,
d
):
PushButton
.
drawpict
(
self
,
d
)
...
...
@@ -51,13 +51,13 @@ class SubdirButton() = PushButton():
window
=
DirListWindow
().
create
(
self
.
text
)
#
class
FileButton
(
)
=
PushButton
(
):
class
FileButton
(
PushButton
):
#
def
up_trigger
(
self
):
stdwin
.
fleep
()
#
class
ModuleButton
(
)
=
FileButton
(
):
class
ModuleButton
(
FileButton
):
#
def
drawpict
(
self
,
d
):
PushButton
.
drawpict
(
self
,
d
)
...
...
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