2 ms·
> I wanted something reasonably fast, with a simple way of producing graphics. Use the text widget in tcl/tk. It can display graphics and is powerful enough to
by jancsika 9y ago
> I wanted something reasonably fast, with a simple way of producing graphics.
Use the text widget in tcl/tk. It can display graphics and is powerful enough to build an old HTML 4.01 editor.
> I wanted to draw a horizontal line between the name of the file and its contents.
Use the text widget in tcl/tk. You can hard-code a base64 encoded gif/jpeg of a horizontal line, store it in memory, and display it wherever you need a horizontal line.
> I wanted to be able to open new instances/windows of this text editor quickly to fit into my workflow.
Use the text widget in tcl/tk. Tk's design is the old-school multiple-toplevel-window paradigm which is perfect for this use case.
> And I wanted low-level control of how the text was rendered (fonts, syntax highlighting, and the ability to add vim keybindings.)
Use the text widget in tcl/tk. It allows you to tag particular parts of the text which you can later manipulate. But it is way more lightweight than the DOM.
> I wanted this to be easy.
Then use the text widget in tcl/tk.
- monetus 9y ago...tcl/tk is always being worked on, too. If only the ttk widgets were easier to style and more consistent between the platforms.