Commit f466f192 authored by Jack Jansen's avatar Jack Jansen

Added a note on swed and htmled examples, added tab support, fixed typo

parent 0f4e0638
This diff is collapsed.
......@@ -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.
......@@ -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)
......
......@@ -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)
......
......@@ -413,7 +413,7 @@ class Wed(Application):
self.active.do_idle(event)
def main():
App = Ped()
App = Wed()
App.mainloop()
if __name__ == '__main__':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment