I just don't know so much to do this yet.
I have decided to do it in Leo log pane for now. When I tried that first 
time it seemed impossible, but today already got some good things going on 
already (Learned to duplicate the Find pane!). Looks like hours in front of 
Leo are begining to pay off!! hehe...
So I will bother about translating into kivy later on, with the 
functionality already working on Leo.
Thanks for the reads tho =)

On Saturday, September 7, 2013 7:05:55 PM UTC+2, Fidel N wrote:
>
> After some help from Kivy 
> developers<https://groups.google.com/forum/#!topic/kivy-users/-LfRTZiNWHU>, 
> they 
> taught me that the thing to do is to merge the event loop from Kivy with 
> Leo event loop.
> Never used event loops and not even sure what they are, but Im messing 
> arround with:
>
>> g.registerHandler("idle", on_idle) 
>
> And then calling Kivy idle with on_idle command.
>
> On Friday, September 6, 2013 10:56:29 AM UTC+2, Fidel N wrote:
>>
>> Hi:
>> Im finishing the Kivy Gui for Leo. I got to the point that I can command 
>> it from Leo (Build buttons, change the layout, well do anything) and those 
>> buttons do commands in Leo. As I said, that Gui can be used in Andriod, 
>> IOS, etc, using leo files as source. I will develop this better when I post 
>> the finished thing here.
>>
>> The problem is that Kivy has its own eventloop, and when I create its Gui 
>> from Leo, I have two options:
>>
>>    - Dont make EventLoop idle in Kivy -> The kivy Gui will work as 
>>    expected, but it blocks Caps lock in Leo
>>    - Make EventLoop idle in Kivy -> Leo works normally, but Kivy window 
>>    becomes unresponsive (Wont even respond to mouse trying to move it over 
>> the 
>>    screen).
>>    
>> This kivy Gui is a Slave window to Leo (It even appears with the Leo 
>> icon).
>>
>> The question would be, is there any hook I could use so whenever Kivy gui 
>> is selected (on top) I can make EventLoop of Kivy not idle (Responsive 
>> again) and when its not selected (on top) I set it back to idle so input 
>> works as normally?
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to