Tkcode Magic
TKCODE Tutorial
Type in your terminal:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
py -m pip install tkcode |
Example:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkcode import CodeEditor | |
from tkinter import * | |
app = Tk() | |
editor = CodeEditor(app, | |
language="python", | |
hilighter="dracula", | |
height=200, | |
width=200, | |
font=("Cascadia Code", 13), | |
bg="black" | |
) | |
editor.pack() | |
#You Can add tabs like file edit help view using Menu() | |
#You can add a run button using os that using os.startfile(filename) | |
app.mainloop() |
Comments
Post a Comment
hello