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
f466f192
Commit
f466f192
authored
Oct 23, 1996
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a note on swed and htmled examples, added tab support, fixed typo
parent
0f4e0638
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
128 additions
and
123 deletions
+128
-123
Mac/Demo/cgi/cgitest.cgi.rsrc.hqx
Mac/Demo/cgi/cgitest.cgi.rsrc.hqx
+119
-119
Mac/Demo/waste.html
Mac/Demo/waste.html
+6
-3
Mac/Demo/waste/htmled.py
Mac/Demo/waste/htmled.py
+1
-0
Mac/Demo/waste/swed.py
Mac/Demo/waste/swed.py
+1
-0
Mac/Demo/waste/wed.py
Mac/Demo/waste/wed.py
+1
-1
No files found.
Mac/Demo/cgi/cgitest.cgi.rsrc.hqx
View file @
f466f192
This diff is collapsed.
Click to expand it.
Mac/Demo/waste.html
View file @
f466f192
...
@@ -63,7 +63,10 @@ Implementing undo is a wonder of simplicity: Waste handles all the details for u
...
@@ -63,7 +63,10 @@ Implementing undo is a wonder of simplicity: Waste handles all the details for u
over what
<code>
ped
</code>
did: in ped it was possible that paste was enabled but that the data on the
over what
<code>
ped
</code>
did: in ped it was possible that paste was enabled but that the data on the
scrap was incompatible with TextEdit. No more such problems here.
<p>
scrap was incompatible with TextEdit. No more such problems here.
<p>
That is all for now. There is an undocumented extended version of wed,
<a
href=
"waste/swed.py"
>
swed.py
</a>
,
which supports multiple fonts, sizes and faces, and uses Waste's tab-calculation to do tab characters "right".
There is also an even more elaborate example,
<a
href=
"waste/htmled.py"
>
htmled.py
</a>
which extends swed with
the ability to import html files, showing the use of color and how to use embedded object (rulers, in this case).
These two programs have not been documented yet, though, so you will have to look at them without guidance.
<p>
<hr>
<hr>
That is all for now. At some point in the future I will extend this editor to incorporate multiple fonts and
Back to the
<A
HREF=
"index.html"
>
index
</A>
to pick another example.
pointsizes, pictures and possibly drag-and-drop editing but I will first have to write the code for it.
For now you will have to go back to the
<A
HREF=
"index.html"
>
index
</A>
to pick another example.
Mac/Demo/waste/htmled.py
View file @
f466f192
...
@@ -56,6 +56,7 @@ class WasteWindow(ScrolledWindow):
...
@@ -56,6 +56,7 @@ class WasteWindow(ScrolledWindow):
flags
=
WASTEconst
.
weDoAutoScroll
|
WASTEconst
.
weDoOutlineHilite
|
\
flags
=
WASTEconst
.
weDoAutoScroll
|
WASTEconst
.
weDoOutlineHilite
|
\
WASTEconst
.
weDoMonoStyled
|
WASTEconst
.
weDoUndo
WASTEconst
.
weDoMonoStyled
|
WASTEconst
.
weDoUndo
self
.
ted
=
waste
.
WENew
(
dr
,
vr
,
flags
)
self
.
ted
=
waste
.
WENew
(
dr
,
vr
,
flags
)
self
.
ted
.
WEInstallTabHooks
()
style
,
soup
=
self
.
getstylesoup
(
self
.
path
)
style
,
soup
=
self
.
getstylesoup
(
self
.
path
)
self
.
ted
.
WEInsert
(
data
,
style
,
soup
)
self
.
ted
.
WEInsert
(
data
,
style
,
soup
)
self
.
ted
.
WESetSelection
(
0
,
0
)
self
.
ted
.
WESetSelection
(
0
,
0
)
...
...
Mac/Demo/waste/swed.py
View file @
f466f192
...
@@ -43,6 +43,7 @@ class WasteWindow(ScrolledWindow):
...
@@ -43,6 +43,7 @@ class WasteWindow(ScrolledWindow):
flags
=
WASTEconst
.
weDoAutoScroll
|
WASTEconst
.
weDoOutlineHilite
|
\
flags
=
WASTEconst
.
weDoAutoScroll
|
WASTEconst
.
weDoOutlineHilite
|
\
WASTEconst
.
weDoMonoStyled
|
WASTEconst
.
weDoUndo
WASTEconst
.
weDoMonoStyled
|
WASTEconst
.
weDoUndo
self
.
ted
=
waste
.
WENew
(
dr
,
vr
,
flags
)
self
.
ted
=
waste
.
WENew
(
dr
,
vr
,
flags
)
self
.
ted
.
WEInstallTabHooks
()
style
,
soup
=
self
.
getstylesoup
()
style
,
soup
=
self
.
getstylesoup
()
self
.
ted
.
WEInsert
(
data
,
style
,
soup
)
self
.
ted
.
WEInsert
(
data
,
style
,
soup
)
self
.
ted
.
WESetSelection
(
0
,
0
)
self
.
ted
.
WESetSelection
(
0
,
0
)
...
...
Mac/Demo/waste/wed.py
View file @
f466f192
...
@@ -413,7 +413,7 @@ class Wed(Application):
...
@@ -413,7 +413,7 @@ class Wed(Application):
self
.
active
.
do_idle
(
event
)
self
.
active
.
do_idle
(
event
)
def
main
():
def
main
():
App
=
P
ed
()
App
=
W
ed
()
App
.
mainloop
()
App
.
mainloop
()
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
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