Simple Text Editor / python shell

1,688 views
Skip to first unread message

John Lawman

unread,
Mar 19, 2013, 7:42:22 AM3/19/13
to kivy-...@googlegroups.com
I've just recently been playing with Kivy so far and considering using it to write some commercial apps.

I have a couple of questions:
 1) Is it possible to write a simple text editor (possible syntax highlighting) in Kivy? Is the reStructuredText renderer suitable for something like this?

2) Is there a way to include a python shell in the android version of kivy? e.g be able to launch scripts within a terminal in android?

At the moment I'm using terninal-ide and kivy launcher to write python scripts on my tablet and was thinking about writing a simple IDE for kivy that is also cross-platform.



Ben Rousch

unread,
Mar 19, 2013, 8:21:57 AM3/19/13
to kivy-...@googlegroups.com
On Tue, Mar 19, 2013 at 7:42 AM, John Lawman <lawma...@gmail.com> wrote:
>
> I have a couple of questions:
> 1) Is it possible to write a simple text editor (possible syntax
> highlighting) in Kivy? Is the reStructuredText renderer suitable for
> something like this?

There is a multiline text edit widget, but syntax highlighting is not
included. I think you would have to code it yourself or find a way to
hook Pygments into it.

>
> 2) Is there a way to include a python shell in the android version of kivy?
> e.g be able to launch scripts within a terminal in android?

Kivy launcher is the closest thing I've found for this so far. I can't
think of any reason you couldn't create a terminal-like app using
Kivy, but I haven't looked into it very deeply.

>
> At the moment I'm using terninal-ide and kivy launcher to write python
> scripts on my tablet and was thinking about writing a simple IDE for kivy
> that is also cross-platform.

Kivy Designer (https://github.com/kivy/kivy-designer) is a WYSIWYG IDE
project that was started a while ago. I don't think there's been much
movement on it lately, and I don't think it was designed for mobile
use.

I've also been thinking about a Kivy IDE on Android (so you can create
Kivy Android apps on Android). My current thoughts are to use Kivy
Launcher and text editors to develop and test run the apps, then
submit them to Buildozer (https://github.com/kivy/buildozer) for
compilation to an Android app.

There is one Kivy IDE app I've found in the Play Store, but I haven't
played with it much yet. It's called QPython
(https://play.google.com/store/apps/details?id=com.hipipal.qpyplus)

I'd love to hear your ideas for such a project. The IRC channel is
probably the best place to chat about it. #kivy on Freenode

--
Ben Rousch
bro...@gmail.com
http://clusterbleep.net/

Akshay Arora

unread,
Mar 19, 2013, 8:37:54 AM3/19/13
to kivy-...@googlegroups.com
1) look at examples/widgets/codeinput.py <- that's a simple text editor with code highlighting and option to save, open files. http://wstaw.org/m/2013/03/19/plasma-desktophS1955.png

2) For python shell, I think including something like a twisted python shell, similar to the one included in kivy-remote-shell https://github.com/kivy/kivy-remote-shell should work.

There is also this https://github.com/akshayaurora/kivy/blob/kivy_console/kivy/uix/kivyconsole.py which is a generic unix style cross platform console. I haven't touched it in a while but, last I checked running python in it works but it's not able to catch/display the output. I'll try and experiment more with it tonight to see if I can make it use twisted to achieve a fully interactive python console.

Best Regards




--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

TinkeringEngr

unread,
Dec 12, 2017, 2:52:41 AM12/12/17
to Kivy users support
qua-non: hero.
Reply all
Reply to author
Forward
0 new messages