Donate Share

PyPanel

Tracker: Patches

5 Adds Autohiding - ID: 1906634
Last Update: Comment added ( myownlittlworld )

Adds autohiding when mouse is moved out of window.

In the current version of pypanel, the pypanel panel is hidden after
several seconds (CLOCK_DELAY) of inactivity. This patch adds behavior to
hide the panel as soon as the mouse moves out of the panel, rendering the
clock delay useless.

I'm certain more work could be done to combine the two (i.e., start the
hide delay when the mouse moves out of the panel), but I don't have the
time or interest to do that right now. It seems to me that such an idea
would require ugly work with threads and sleeping anyway, though I could
well be wrong.

Anyway, I'm happy how it turned out, I hope someone else finds it useful.


Nick Daly ( myownlittlworld ) - 2008-03-03 23:38

5

Open

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2008-03-13 13:24
Sender: myownlittlworld


I finally got around to not breaking the autohiding originally in Pypanel.
This version of the mouse-aware autohiding will hide CLOCK_DELAY seconds
after the mouse leaves the panel.

I'll be honest, a 3-second delay really _is_ much nicer than immediately.
:)

Hope you find it useful,
Nick
File Added: pypanel_autohide-1.diff


Log in to comment.

Attached Files ( 2 )

Filename Description Download
pypanel_autohide.diff Add autohide functionality to PyPanel Download
pypanel_autohide-1.diff Adds mouse-aware autohiding to pypanel, now with (the original) time delay. Download

Changes ( 2 )

Field Old Value Date By
File Added 270277: pypanel_autohide-1.diff 2008-03-13 13:24 myownlittlworld
File Added 268992: pypanel_autohide.diff 2008-03-03 23:38 myownlittlworld