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.app import App
|
||||||
from kivy.lang import Builder
|
from kivy.lang import Builder
|
||||||
from kivy.uix.widget import Widget
|
from kivy.uix.widget import Widget
|
||||||
|
from kivy.uix.codeinput import CodeInput
|
||||||
from kivy.uix.tabbedpanel import TabbedPanel
|
from kivy.uix.tabbedpanel import TabbedPanel
|
||||||
from kivy.uix.button import Button
|
from kivy.uix.button import Button
|
||||||
from kivy.graphics import Color, Ellipse, Line
|
from kivy.graphics import Color, Ellipse, Line
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,12 @@
|
||||||
#:kivy 1.0
|
#:kivy 1.0
|
||||||
|
#:import ActionScriptLexer pygments.lexers.ActionScriptLexer
|
||||||
|
|
||||||
<Lightningbeam>:
|
<Lightningbeam>:
|
||||||
do_default_tab: False
|
do_default_tab: False
|
||||||
TabbedPanelItem:
|
TabbedPanelItem:
|
||||||
text: 'Drawing'
|
text: 'Drawing'
|
||||||
BoxLayout:
|
BoxLayout:
|
||||||
orientation: "Vertical"
|
orientation: "vertical"
|
||||||
|
|
||||||
TabbedPanelItem:
|
TabbedPanelItem:
|
||||||
text: 'Tools'
|
text: 'Tools'
|
||||||
|
|
@ -27,6 +28,7 @@
|
||||||
text: "Painbrush"
|
text: "Painbrush"
|
||||||
TabbedPanelItem:
|
TabbedPanelItem:
|
||||||
text: 'ActionScript'
|
text: 'ActionScript'
|
||||||
TextInput:
|
CodeInput:
|
||||||
multiline: True
|
multiline: True
|
||||||
|
lexer: ActionScriptLexer()
|
||||||
font_name: 'UbuntuMono-R.ttf'
|
font_name: 'UbuntuMono-R.ttf'
|
||||||
Loading…
Reference in New Issue