enaml icon indicating copy to clipboard operation
enaml copied to clipboard

add support for wait cursors

Open sccolbert opened this issue 10 years ago • 5 comments

as it says on the tin...

sccolbert avatar Mar 04 '14 16:03 sccolbert

I might be able to do it in the current of the week (using default cursors only) if you are interested. I guess the proper way to do it is similar to do what is done for deferred_call. Have you an api in mind (start_busy, end_busy and perhaps a context manager also)? Should a method to refresh the ui also be added (similar to qt.ProcessEvents() and wx.Yield) in case the long running task is not run in a thread ?

MatthieuDartiailh avatar Mar 04 '14 16:03 MatthieuDartiailh

@MatthieuDartiailh Did you ever make a basic implementation of this? It looks like you might have based on a Google Groups post? I'd be happy to test it out and revise as needed.

bburan avatar Mar 23 '20 21:03 bburan

I don't think I ever did and I did not look at it in a long long time. Also what Google Group post are you referring to (I could not find one related through a quick search) ?

MatthieuDartiailh avatar Mar 23 '20 21:03 MatthieuDartiailh

This is the post I was referencing: https://groups.google.com/d/msg/enaml/soUKRvXT_BU/Zj9T7p_6imgJ

Will report back if I manage to pull together an implementation.

bburan avatar Mar 23 '20 23:03 bburan

I have no idea where that experiment went... Sorry

As mentioned above I believe the functionality should live on the app with some module level functions live deferred_call. I would probably stay away from the event processing part to start with since it is a pain (know that from automatic testing).

MatthieuDartiailh avatar Mar 24 '20 02:03 MatthieuDartiailh