Widget Events

9 views
Skip to first unread message

Gabriel Csapo

unread,
Mar 23, 2015, 8:06:16 PM3/23/15
to beeware-d...@googlegroups.com
Hello All,

I am looking to expand the OSX widgets to incorporate touch and key events. Is there a branch that has been doing this type of stuff or would it make sense in my current path of forking and going in a different direction?

Thank you,
Gabriel Csapo

Russell Keith-Magee

unread,
Mar 23, 2015, 8:14:15 PM3/23/15
to beeware-d...@googlegroups.com
On Tue, Mar 24, 2015 at 6:12 AM, Gabriel Csapo <gabe...@gmail.com> wrote:
Hello All,

I am looking to expand the OSX widgets to incorporate touch and key events. Is there a branch that has been doing this type of stuff or would it make sense in my current path of forking and going in a different direction?
 
Hi Gabriel,

Everything in Toga is very early stage, and I've been distracted by trying to get mobile platform support (iOS/Android) nailed down recently. If you want to contribute some APIs for key and/or touch events, I'd love to see what you can come up with!

Yours,
Russ Magee %-)

Gabriel Csapo

unread,
Mar 24, 2015, 10:46:09 AM3/24/15
to beeware-d...@googlegroups.com
Hello Russ,

Do you currently have a way to track requests and their current stages? 

I also have some questions regarding the internal event thread, when an application enters the main loop, what exactly does that do? I know in tkinter it is monitoring a event queue, but I have not been able to track down exactly where toga deals with its internal event queue. 

I really am impressed with the project and hope my contributions will bring some insight to your endeavors. I have tried endlessly looking for a basic gui library and by Toga wins the race. 

Best,
Gabriel Csapo

Russell Keith-Magee

unread,
Mar 24, 2015, 6:30:21 PM3/24/15
to beeware-d...@googlegroups.com
On Tue, Mar 24, 2015 at 10:46 PM, Gabriel Csapo <gabe...@gmail.com> wrote:
Hello Russ,

Do you currently have a way to track requests and their current stages? 
 
Do you mean requests in the "bug tracker" sense? In which case, yes - I've been using the Github ticket tracker. There's a separate ticket tracker for each sub-project, so you can track OSX bugs vs GTK bugs, etc. 

I also have some questions regarding the internal event thread, when an application enters the main loop, what exactly does that do? I know in tkinter it is monitoring a event queue, but I have not been able to track down exactly where toga deals with its internal event queue. 

Different GUI frameworks expose the event loop in different ways, but it's essentially the same result - the background loop monitors for mouse clicks, keyboard presses etc, and passes those events off to widget event handlers.

Toga *itself* doesn't have an event queue - it uses the event queues provided by the underlying widget frameworks. The loop is started using the main_loop() method on the App class; that means NSApplication.run() on OS/X, Gtk.Application.run() on GTK+, and so on. 

On mobile platforms, main_loop() is a no-op, due to the way those platforms work; the event loop runs implicitly as part of the scaffolding that starts the application.

I really am impressed with the project and hope my contributions will bring some insight to your endeavors. I have tried endlessly looking for a basic gui library and by Toga wins the race. 

Thanks! I started Toga because I wasn't satisfied with the GUI toolkits that already existed; I know there's a lot of work still to be done, but I'm hopeful I can contribute something meaningful  to the space - especially if I get assistance from people like yourself.
 
Yours,
Russ Magee %-)
Reply all
Reply to author
Forward
0 new messages