Jesse Cox | 29 Jul 00:19 2015
Picon

How does one detect if a mous-click is within range of a button?

I'm writing a media player and need the best way to detect if the player buttons have been clicked. Something like:

If withinRange([421, 400], [0, 0], MouseLocation):
print(a)

would be awesome. Ideally I would place the coordinates around my button. Thanks.

--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to pyglet-users <at> googlegroups.com.
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.
Devan Kistan | 24 Jul 13:06 2015
Picon

how to set soundcard in pyglet

Hi guys,

I am using pyglet on windows as a music player and it works great. 

I have the need to be able to set, within pyglet, the desired soundcard to play through as I have an external usb soundcard that I would like to play different music from my onboard soundcard.

How can I achieve this?

Do I need to have some external software do this? or can I set it from within pyglet?

Thanks


--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to pyglet-users <at> googlegroups.com.
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.
Blake O'Hare | 23 Jul 03:49 2015
Picon

The dates for the next PyWeek...

PyWeek will run from August 9th through August 16th, with theme voting occurring the week before on August 2nd.

--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to pyglet-users <at> googlegroups.com.
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.
Brandon Keith Biggs | 19 Jul 18:30 2015
Picon

listening for key presses without a window being up?

Hello,
I am making a commandline text adventure and would like to know if there is a way to grab key presses while still keeping the commandline on the front of the applications. Then I would like to be able to switch from grabbing key presses to having users interact directly with the command line like normal.
Is this possible?
thanks,

--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to pyglet-users <at> googlegroups.com.
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Prateek Dwivedi | 14 Jul 17:37 2015
Picon

Duration of Song

Hello Everyone,
I using Pyglet library to make a music player.
To be specific I'm making use of Player class of Pyglet library to play music.

To update seeker of my music player I need the complete duration of song being currently played. I tried taking help from documentation, but failed to find any attribute or method for my help.

So is there a way I can fetch complete duration of song currently being played?

Thanks in advance

--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to pyglet-users <at> googlegroups.com.
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.
Stu.Axon | 13 Jul 12:34 2015
Picon

Merge pyglet-pi ?

Is there any chance of merging pyglet-pi to mainstream pyglet ?

Working on GLES, could be the key to pyglet on android.

I haven't looked at the source of pyglet-pi closely, so I don't know if it just replaces GL with GLES, or if it detects which is available, which I guess would be needed.

https://code.google.com/r/silvester747-pyglet-pi/

--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to pyglet-users <at> googlegroups.com.
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.
Rob | 13 Jul 11:24 2015
Picon

EuroPython 2015

Hi all,

Is anybody going to EuroPython 2015 in Bilbao? I'll be there all week.

Rob

--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to pyglet-users <at> googlegroups.com.
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.
damien.j.mannion | 11 Jul 05:09 2015
Picon

intermittent 'GL context' error

Hi all,


I'm having an intermittent problem with pyglet - importing 'pyglet.gl' sometimes gives the following:


----

Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/damien/venv/pyglet_test/lib/python2.7/site-packages/pyglet/gl/__init__.py", line 236, in <module> import pyglet.window File "/home/damien/venv/pyglet_test/lib/python2.7/site-packages/pyglet/window/__init__.py", line 1817, in <module> gl._create_shadow_window() File "/home/damien/venv/pyglet_test/lib/python2.7/site-packages/pyglet/gl/__init__.py", line 205, in _create_shadow_window _shadow_window = Window(width=1, height=1, visible=False) File "/home/damien/venv/pyglet_test/lib/python2.7/site-packages/pyglet/window/xlib/__init__.py", line 166, in __init__ super(XlibWindow, self).__init__(*args, **kwargs) File "/home/damien/venv/pyglet_test/lib/python2.7/site-packages/pyglet/window/__init__.py", line 516, in __init__ context = config.create_context(gl.current_context) File "/home/damien/venv/pyglet_test/lib/python2.7/site-packages/pyglet/gl/xlib.py", line 186, in create_context return XlibContextARB(self, share) File "/home/damien/venv/pyglet_test/lib/python2.7/site-packages/pyglet/gl/xlib.py", line 300, in __init__ super(XlibContext13, self).__init__(config, share) File "/home/damien/venv/pyglet_test/lib/python2.7/site-packages/pyglet/gl/xlib.py", line 203, in __init__ raise gl.ContextException('Could not create GL context') pyglet.gl.ContextException: Could not create GL context
----

It doesn't happen every time - seems to be about 50% (but not in any discernable sequence). It occurs across multiple computers with the same Nvidia card, but not on my laptop with an (older) ATI card.


This is on linux (Arch) with nvidia drivers. My video card is 'NVIDIA Corporation GK107 [GeForce GTX 650] (rev a1)'. My version of pyglet is '1.2.3' (installed via pip) in an otherwise clean virtualenv. It is reasonably new behaviour - it has been working fine up until the last month or so.


Does anyone have any ideas on what might be going on, or how to get more information on the error?


Thanks!

--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to pyglet-users <at> googlegroups.com.
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.
NiBE | 9 Jul 17:31 2015
Picon

Rotating sprite generate artifacts

Hi,
I'm a newbie trying to learn pyglet, and I love it so far!
I have a stupid issue that I don't know how to fix.
I try to rotate a simple sprite with this code:



test_img = pyglet.resource.image('img.png')
self.test_sprite = pyglet.sprite.Sprite(img=test_img,x=300,y=400, batch=self.main_batch)

def update(self, dt):
   
self.test_sprite.rotation -= float(100 * dt)

it works great, but I see artifact while it rotates, see the picture below, the left is a static image, the right is the one rotating:




I did a quick search and I find a discussion regarding it here:

https://groups.google.com/forum/#!topic/pyglet-users/5NiNT1vRHGw

But honestly I'm a newbie in pyglet and I don't get how should I amend the code above to remove the artifact.
Anyone can help me please?

thanks a lot

--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to pyglet-users <at> googlegroups.com.
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.
ccedricsp | 7 Jul 15:14 2015
Picon

some mp3 files crashes when I try to load them

Hi everyone

I'm trying to make a little music player with pyglet and it works quite fine, but some of the mp3 files are crashing. (for me) without a reason.
I looked into the music files but I can't see any differences between the working files and the ones which doesn't.
So I thought this problem is already known and someone can explain me why they don't work and if there's a way to get it working.
And I don't think it's a good idea to send copyrighted sound files through the net so I can't send it for testing cases.

I know that's not the best description but I really couldn't find any differences so I don't want to give wrong informations, because I usually don't work much with music files. But if you need more informations just tell me what I have to do to get the informations you need.

I'm thankful for every hint
- cedric

--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to pyglet-users <at> googlegroups.com.
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.
magurp244 | 5 Jul 07:21 2015
Picon

Pyglet.media audio failure

Bit of a serious issue here, i've tried distributing binaries of an audio program lately and have been getting feedback that the audio doesn't work. I've tried replicating this in on a Win8 machine and got similar results. It seems like the audio is playing, and the drivers are loading, but nothings coming out. I installed Openal, AVBin, then loaded Python 2.7.10 and the latest version of pyglet 1.2.3, nothing. Works fine on my WinXP system and doesn't produce any error messages on either rig, so i'm not sure whats going on.

--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to pyglet-users <at> googlegroups.com.
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Gmane