Jesse Cox | 21 Aug 07:17 2015
Picon

How would you make a font compatible with Pyglet?

I'm trying to distrubute the Ubuntu Mono font with a media player I'm developing: https://github.com/ki4jgt/SIMP

Whenever I try to use uMono on line 168 (defined on line 27), it complains about missing lower cases or something. Is there any way I can modify the file so that it is compatible with Pyglet?

--
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 | 17 Aug 21:24 2015
Picon

Pyglet 1.2.4b1

Hi all,

I created a new bugfix release. Please give it a try and let me know if there are any blocking issues. If there are no critical issues I will promote it to 1.2.4 next week.

You can find the new version at:
* https://pypi.python.org/pypi/pyglet/1.2.4b1
* pip install pyglet==1.2.4b1

Pyglet 1.2.4 ============ Minor bugfix release. Bugfixes: - X11: Fix ContextException due to negative return value (#51) - X11: Fix segmentation fault in GdkPixBuf (#50) - OpenAL: Fix incompatibility with Python 3 (#57)
Kind regards,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.
Jesse Cox | 11 Aug 04:51 2015
Picon

How do you auto update the display without triggering an event?

I'm trying to build a media player in OpenGL. The problem I'm having is, I can't depend on the window to trigger an event for updating. The song location bar needs to keep up to date without triggering events. Is this possible?

--
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 | 9 Aug 13:10 2015
Picon

Dev update

Hi all,

Just a little update on what I am currently working on. 

During EuroPython I did some bugfixes and started converting the test framework to py.test (thanks to the py.test devs for helping me out with some questions). There are still some details that I am trying to figure out, so that is taking some time. The goal is to make it as easy as possible to run the tests on all supported platforms. That will make it easier for me to test the python-future changes in 1.3. The idea is to make it easy to render questions in the used pyglet window, and only fall back to console or easygui when no window is open/usable. Also I want to rely on the pyglet event loop instead of a custom test loop (or no loop at al, which seems to work less nice on Windows).

I am also considering doing a 1.2.4 maintenance release. That should include the fix for the GLX context issue and the crashes in GdkPixBuf. Are there other issues you think should be fixed in maintenance? I will try to do these for 1.2.4 too, but of course a pull request for bugfixes in 1.2.x would make it a bit faster ;-)

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.
Jason Spashett | 8 Aug 02:15 2015
Picon

about issue #51 pyglet.gl.ContextException: Could not create GL context

I've been getting this issue regualrly on all linux installations while playing with pyglet. I see it's fixed now in the repository but it's not in pypi yet. I have a few miscellanous questions:

presumably it will get a pypi update for this at some point

The issue has been present since 2008, the first commit, how come it's only surfaced now? Is it  the result of glx or other changes?

I ask these questions as I am thinking of using pyglet for a comercial project for a client, and of course I am a little aprehensive in case i run into trouble with pyglet.

However, pyglet seems to be exactly what I need, unless I waste effort going the DIY route.

I saw some rumors of pyglets demise, but perhaps the project just needs more contributors.

Thanks,

Jason



--
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.
Death in Pyjamas | 5 Aug 09:08 2015
Picon

Smaller images into one large image

Hello,
is there a way inside pyglet to convert a number of smaller images (tiles) into one large image?
I know about the TextureAtlas class, however I need the tiles to be located at specific coordinates on the larger image.
Is there a way to do this that doesn't involve converting the images to be used with the Python Imaging Library and then back into pyglet?

--
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.
Simon WoodburyForget | 3 Aug 16:43 2015
Picon

Sound not playing fully?

import pyglet
#import time

window
= pyglet.window.Window()

# i use this for my code.
#pyglet.resource.path = ['/resources']
#pyglet.resource.reindex()
#bullet_sound = pyglet.resource.media("bullet.wav", streaming=False)
                                           
## streaming fix's an error message

bullet_sound
= pyglet.media.load("/resources/bullet.wav", streaming=False)

<at> window.event
def on_key_press(symbol, modifiers):
   
# sound only plays for a millisecond
    bullet_sound
.play()

   
# this lets the sound complete
   
#time.sleep(1)

   
# also tried this with 'update()'
   
#player.queue(bullet_sound)

#def update(dt):
#    player.play()
#pyglet.clock.schedule_interval(update, 1/120.0)

pyglet
.app.run()

I can't seem to find anything about this when google searching. Sleeping makes the sound finish, so i suppose it has something to do with it dropping the sound prematurely. But how to i get it not to do so?

I even tried using the player, putting it in an update function and queuing it from the event, but that din't change anything.

--
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.
Simon WoodburyForget | 3 Aug 16:34 2015
Picon

Sound not play fully?

import pyglet
#import time

window
= pyglet.window.Window()

# i use this for my code.
#pyglet.resource.path = ['/resources']
#pyglet.resource.reindex()
#bullet_sound = pyglet.resource.media("bullet.wav", streaming=False)
                                           
## streaming fix's an error message

bullet_sound = pyglet.media.load("/resources/bullet.wav", streaming=False)

<at> window.event
def on_key_press(symbol, modifiers):
   
# sound only plays for a millisecond
    bullet_sound
.play()

   
# this lets the sound complete
   
#time.sleep(1)

   
# also tried this with 'fire()'
   
#player.play()

#def fire():
#    player.queue(bullet_sound)

pyglet
.app.run()

I can't seem to find anything about this when google searching. Sleeping makes the sound finish, so i suppose it has something to do with it dropping the sound prematurely. But how to i get it not to do so?

I even tried using the player, putting it in an update function and queuing it from the event, but that din't change anything.

--
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.
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.

Gmane