Skip to content

Instantly share code, notes, and snippets.

@zai1208
Last active July 20, 2020 00:14
Show Gist options
  • Save zai1208/93bde71f371a38009daa3e1f5763f76d to your computer and use it in GitHub Desktop.
Save zai1208/93bde71f371a38009daa3e1f5763f76d to your computer and use it in GitHub Desktop.
""" 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