simplify codeinput example

This commit is contained in:
tshirtman 2012-10-23 17:41:16 +02:00
parent 966404f166
commit 7a597a1f3e
1 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,5 @@
from kivy.app import App
from kivy.extras.highlight import KivyLexer
from kivy.uix.codeinput import CodeInput
from kivy.factory import Factory
import pygments
@ -60,7 +59,7 @@ class CodeInputTest(App):
languages.bind(text=self.change_lang)
b.add_widget(languages)
self.codeinput = CodeInput(
self.codeinput = Factory.CodeInput(
lexer=KivyLexer(),
font_name='data/fonts/DroidSansMono.ttf', font_size=12,
text=example_text)