On Fri, Aug 22, 2008 at 10:45 AM, A. Joseph Hager <[EMAIL PROTECTED]> wrote:
>
> I have been using pyglet for some text-heavy applications lately
> (reusable vim editor widget

Sweet :-)

>
> First, setting Caret.PERIOD to 0 does not keep it from blinking.
> Every time an event comes in (on_text, etc) visibility is toggled.
> Changing the second line of the _blink method to:
>
>        if self._visible and self._active and (self._blink_visible or
> self.PERIOD == 0):
>
> seems to do the trick.

Thanks, fixed (in a slightly different way) in r2205 (trunk) and r2204
(pyglet-1.1-maintenance).

>
> The next can be reproduced by creating an IncrementalTextLayout with a
> caret, moving the layout in the positive x direction by any amount of
> pixels, filling up two lines with text, going back to the first line
> and finally pressing END. This will seem to put the caret at the end
> of the first line but if you then move the arrow left or right you'll
> see that you are actually at the end of row two. Doing a SHIFT-END
> will select til the end of row 2 as well.  If layout.x is left at 0
> there is no issue. I couldn't find a fix for this one.  HOME and SHIFT-
> HOME seems to be fine. I am not sure about other motions.

Thanks again, fixed in r2207 (trunk) and r2206 (pyglet-1.1-maintenance).

>
> The final thing is actually a question to anyone on the list. Is there
> a way to minimize to system tray on windows, either by using something
> exposed by pyglet or by using pywin32?  I am having a hard time
> finding any information about it. I do not want to use a windowing
> toolkit like wx or gtk.

If you don't find anything else, you can use pyglet+ctypes to call the
API directly:

http://msdn.microsoft.com/en-us/library/bb762159(VS.85).aspx

See the window_platform_event.py example for how to handle the extra events.

Alex.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to