How would you check for modifier keys held down?

2023-09-02 Thread Matan
Hi, How would you check for modifier keys being held down on *mouse motion*? I think you don't have that information as part of the parameters of that mouse event, can you get their status outside of a keyboard event? Thanks, Matan -- You received this message because you are subscribed

on_draw continuously triggering when there is no `on_update` nor desktop events

2023-04-18 Thread Matan
Hi, Just wondering why does pyglet keep calling `on_draw` even when no updates are made in user code (even when no user `on_update` callback is registered) and no keyboard, mouse events are happening nor any desktop events such as windows moving on top the pyglet window or anything. When the

Re: Pyglet with Asyncio

2023-04-18 Thread Matan
It's interesting that the mere use of threading does not break anything in pyglet's consistency as its own event loop's source reads a little like it assumes that none of its function calls would be preempted ― whereas python threading might be preempting function calls all of the time as it

Re: Animating shapes with event handlers

2023-04-11 Thread Matan
do chime in. On Sunday, April 9, 2023 at 6:26:19 AM UTC+3 s.ma...@gmail.com wrote: > Thanks for the advice. > Do you have a code example of how to implement this? > > вс, 9 апр. 2023 г. в 02:11, 'Greg Ewing' via pyglet-users > : > > > > On 8/04/23 12:26 am, Matan wro

Animating shapes with event handlers

2023-04-07 Thread Matan
real-time analysis. Thanks for your suggestions or comments if you have a suited and robust design pattern suggestion using pyglet. Matan -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop

towards a rectangle with rounded corners and font size estimation

2023-05-02 Thread Matan
Hi, Just as part of easing into pyglet and opengl, I am wondering if anyone can explain the following line of code: https://github.com/pyglet/pyglet/blob/5bc0f80e0446bc4ebb2b381370802f60320c0d8a/pyglet/shapes.py#L1178 Where it seems like 2 of the 4 corners of the rectangle repeat on the

Re: on_draw continuously triggering when there is no `on_update` nor desktop events

2023-07-07 Thread Matan
Sorry, I mean not really aligned with it. On Friday, July 7, 2023 at 7:26:56 PM UTC+3 Matan wrote: > BTW, this obviously contradicts the official documenation: > > https://pyglet.readthedocs.io/en/latest/modules/window.html#pyglet.window.Window.on_draw > > On Sunday, June 4, 2023

pylget config and flickering with a UHD Graphics 630

2023-07-07 Thread Matan
sights. Regards, Matan -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyglet-users+unsubscr...@googlegroups.com. To view this discussion on the

Re: on_draw continuously triggering when there is no `on_update` nor desktop events

2023-07-07 Thread Matan
BTW, this obviously contradicts the official documenation: https://pyglet.readthedocs.io/en/latest/modules/window.html#pyglet.window.Window.on_draw On Sunday, June 4, 2023 at 11:35:04 PM UTC+3 Matan wrote: > I'm not sure what had been confusing and whether the new patterns this > i

Re: on_draw continuously triggering when there is no `on_update` nor desktop events

2023-06-04 Thread Matan
ut having to schedule an update. > > On Tuesday, April 18, 2023 at 8:00:06 AM UTC-5 Matan wrote: > >> Hi, >> >> Just wondering why does pyglet keep calling `on_draw` even when no >> updates are made in user code (even when no user `on_update` callback is &g

Re: towards a rectangle with rounded corners and font size estimation

2023-07-02 Thread Matan
reliably fit text to a given height without iterating off-canvas because "font sizes" aren't fully telling. On Wednesday, May 3, 2023 at 2:14:12 PM UTC+3 Petr Viktorin wrote: > On 03. 05. 23 12:07, Matan wrote: > > Thanks. Knocking off few points off my intelligence test for hav

Re: towards a rectangle with rounded corners and font size estimation

2023-05-03 Thread Matan
 PM UTC+3 Petr Viktorin wrote: > On 03. 05. 23 1:04, Matan wrote: > > Hi, > > > > Just as part of easing into pyglet and opengl, I am wondering if anyone > > can explain the following line of code: > > > > > https://github.com/pyglet/pyglet/blob/5bc0f