Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion flickering square on function call
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Anonymouse  
View profile  
 More options Oct 23 2012, 3:06 pm
From: Anonymouse <anonymouse2...@gmail.com>
Date: Tue, 23 Oct 2012 21:06:07 +0200
Local: Tues, Oct 23 2012 3:06 pm
Subject: Re: flickering square on function call
And add window.flip() to the Blinker function so that it still redraws
the window.

On 22 October 2012 18:00, Nathan <nathan.sto...@gmail.com> wrote:

> On Fri, Oct 19, 2012 at 2:29 PM, hotelCA <it.is.t...@gmail.com> wrote:

>> Hi, so basically I have an application with a square in the middle that
>> blinks at a certain frequency. The frequency is determined by
>> pyglet.clock.schedule_interval(Blinker, Rate). It basically calls the
>> function Blinker at the time interval of Rate. Now, I have @window.event
>> section, where I have defined on_draw(). Everything works fine, except that
>> on_draw() is triggered on every window event, including hovering the mouse
>> over the window. How do I disable all window events, except the function
>> call? Thanks.

> You could just not implement the on_draw() event.  Just rename your
> on_draw() to some other name, and don't decorate it as the on_draw() event,
> and then just call it when you want to.

> ~ Nathan

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.