Changed TextInput to CodeInput for syntax highlighting
This commit is contained in:
parent
2f1fdfaf5a
commit
f1c350aad8
1
kt.py
1
kt.py
|
|
@ -2,6 +2,7 @@ from random import random
|
|||
from kivy.app import App
|
||||
from kivy.lang import Builder
|
||||
from kivy.uix.widget import Widget
|
||||
from kivy.uix.codeinput import CodeInput
|
||||
from kivy.uix.tabbedpanel import TabbedPanel
|
||||
from kivy.uix.button import Button
|
||||
from kivy.graphics import Color, Ellipse, Line
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
#:kivy 1.0
|
||||
#:import ActionScriptLexer pygments.lexers.ActionScriptLexer
|
||||
|
||||
<Lightningbeam>:
|
||||
do_default_tab: False
|
||||
TabbedPanelItem:
|
||||
text: 'Drawing'
|
||||
BoxLayout:
|
||||
orientation: "Vertical"
|
||||
orientation: "vertical"
|
||||
|
||||
TabbedPanelItem:
|
||||
text: 'Tools'
|
||||
|
|
@ -27,6 +28,7 @@
|
|||
text: "Painbrush"
|
||||
TabbedPanelItem:
|
||||
text: 'ActionScript'
|
||||
TextInput:
|
||||
CodeInput:
|
||||
multiline: True
|
||||
lexer: ActionScriptLexer()
|
||||
font_name: 'UbuntuMono-R.ttf'
|
||||
Loading…
Reference in New Issue