[Gambas-user] Bug with GTK+

Benoît Minisini gambas at ...1...
Tue Dec 16 11:48:03 CET 2014


Le 16/12/2014 04:00, Jussi Lahtinen a écrit :
>> I'm not clear enough: you should not have to disable and re-enabling a
>> control inside an event handler, because you are not supposed to call
>> event loop (WAIT <time> instruction) inside an event handler. If you
>> don't call the event loop, then disabling then re-enabling is useless.
>>
>
> OK, now I understand the issue... In fact the code showing the data uses
> "wait".
> And it seems to work as expected in Qt4. But I understand how it may create
> problems, while now it doesn't seem to.
> So, I could replace "wait" with "sleep" and take of the enable/disable
> code. However I like that the control goes gray when disabled... right now
> I can't figure out nice solution for this.
>
>
> Jussi

It works with gb.qt4 by luck in your case. Actually neither gb.qt4 or 
gb.gtk likes when WAIT is called during a keyboard event (or mouse 
event), because it messes their internal event process up.

-- 
Benoît Minisini




More information about the User mailing list