Last active
July 20, 2020 00:14
-
-
Save zai1208/93bde71f371a38009daa3e1f5763f76d to your computer and use it in GitHub Desktop.
This file contains 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
""" a simple python 3.x code editor in Kivy""" | |
from kivy.app import App | |
from kivy.uix.codeinput import CodeInput | |
# not sure if needed but must be installed | |
import pygments | |
class MyApp(App): | |
def build(self): | |
return CodeInput(lexer=PythonLexer) | |
if __name__ == "__main__": | |
MyApp().run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment