Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
70e413de
Kaydet (Commit)
70e413de
authored
Eki 23, 1996
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added a note on swed and htmled examples, added tab support, fixed typo
üst
92ca16c3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
4 deletions
+9
-4
cgitest.cgi.rsrc.hqx
Mac/Demo/cgi/cgitest.cgi.rsrc.hqx
+0
-0
waste.html
Mac/Demo/waste.html
+6
-3
htmled.py
Mac/Demo/waste/htmled.py
+1
-0
swed.py
Mac/Demo/waste/swed.py
+1
-0
wed.py
Mac/Demo/waste/wed.py
+1
-1
No files found.
Mac/Demo/cgi/cgitest.cgi.rsrc.hqx
Dosyayı görüntüle @
70e413de
This diff is collapsed.
Click to expand it.
Mac/Demo/waste.html
Dosyayı görüntüle @
70e413de
...
...
@@ -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
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>
That is all for now. At some point in the future I will extend this editor to incorporate multiple fonts and
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.
Back to the
<A
HREF=
"index.html"
>
index
</A>
to pick another example.
Mac/Demo/waste/htmled.py
Dosyayı görüntüle @
70e413de
...
...
@@ -56,6 +56,7 @@ class WasteWindow(ScrolledWindow):
flags
=
WASTEconst
.
weDoAutoScroll
|
WASTEconst
.
weDoOutlineHilite
|
\
WASTEconst
.
weDoMonoStyled
|
WASTEconst
.
weDoUndo
self
.
ted
=
waste
.
WENew
(
dr
,
vr
,
flags
)
self
.
ted
.
WEInstallTabHooks
()
style
,
soup
=
self
.
getstylesoup
(
self
.
path
)
self
.
ted
.
WEInsert
(
data
,
style
,
soup
)
self
.
ted
.
WESetSelection
(
0
,
0
)
...
...
Mac/Demo/waste/swed.py
Dosyayı görüntüle @
70e413de
...
...
@@ -43,6 +43,7 @@ class WasteWindow(ScrolledWindow):
flags
=
WASTEconst
.
weDoAutoScroll
|
WASTEconst
.
weDoOutlineHilite
|
\
WASTEconst
.
weDoMonoStyled
|
WASTEconst
.
weDoUndo
self
.
ted
=
waste
.
WENew
(
dr
,
vr
,
flags
)
self
.
ted
.
WEInstallTabHooks
()
style
,
soup
=
self
.
getstylesoup
()
self
.
ted
.
WEInsert
(
data
,
style
,
soup
)
self
.
ted
.
WESetSelection
(
0
,
0
)
...
...
Mac/Demo/waste/wed.py
Dosyayı görüntüle @
70e413de
...
...
@@ -413,7 +413,7 @@ class Wed(Application):
self
.
active
.
do_idle
(
event
)
def
main
():
App
=
P
ed
()
App
=
W
ed
()
App
.
mainloop
()
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