Looking through the source code, I can't actually see anything that would
trigger these "_handle_..." events. There's nothing in the _Window class
about them. I can only see references to Exposure, ButtonPress and KeyPress
in the eventmask for the Internal window class so maybe there's something
in the underlying xcffib module that deals with this.
That being said, I feel like I've hit a dead end here.
On Friday, 6 November 2020 at 18:55:41 UTC elParaguayo wrote:
> I'll start off by saying I could have misunderstood what the Popup object
> is for but I felt like it may be what I was looking for (ability to have
> window temporarily display some additional information from my widgets).
>
> However, I just can't get them to work. The code I'm using is as follows:
>
> from libqtile.popup import Popup
>
> class MyPop(Popup):
> def _handle_Expose(self, e):
> logger.warning("Exposed")
>
> def _handle_KeyPress(self, event):
> logger.warning("Key: {}".format(event))
>
> def _handle_ButtonPress(self, event):
> logger.warning("Button: {}".format(event))
>
>
> I subclassed Popup so I could write my own handle functions but none of
> them seem to get called (as there's nothing in the log file).
>
> The window loads ok (small, semi-opaque window in top left corner as per
> default values) but clicking on it just seems to impact the window beneath
> it.
>
> Any ideas where I'm going wrong?
>
--
You received this message because you are subscribed to the Google Groups
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/qtile-dev/7e064b48-a483-421d-a397-55a938b0f4e9n%40googlegroups.com.