[pygame] unsubscribe pygames-users
Re: [pygame] Corrupted Code
Hello, Can you open that text file (in python or an hex editor) and see if the data makes any sense? Talking about backup On Linux, I advise using dirvish (some kind of primitive apple like time machine but designed many years ago) backing up nightly to an external usb drive. Regards, Guillaume
Re: [pygame] touch screens
My X41 laptop (IBM - Lenovo) that has an included stylus-based touch screen did not work with pygame last year when I tried. Seemingly, SDL is the place where the support is missing. I don't know if anything changed since. Guillaume
Re: [pygame] 3D/2D sound?
Have a look at FMOD andpysonic G On 2/13/07, John Eriksson [EMAIL PROTECTED] wrote: Hi, Is there a way to control the volume of different speakers using pygame (or a python package that can be used together with pygame)? 3D placement would be great but just to be able to set different volume for two speakers would be sufficient. I found Soya...but can that be used without using the 3D graphics part?? Any ideas? Best Regards /John
Re: [pygame] Tentative patch for metrics font method
Hi Lenard, cheers for your help... Nice to see how easy it is to add new features to pygame! I downloaded kochi-gothic.ttf and found it has ascii characters. Maybe ? ... Why does it display garbage then in Freevo?! I guess I need to make a couple of test cases. about. I don't think Gurmukhi ( U+0A00-U+0A7F ) is on my machine. This is a quick test session I did: Thank you; apparently, the stuff i needed does not work as expected (on Windows at least). I will try out on Linux. Thanks a ton! cheers, Guillaume
Re: [pygame] Tentative patch for metrics font method
Hi Lenard... Thank you for testing all this. I really do not understand anymore why I am getting garbage (not square) characters... I will try some stand-alone tests and let you know. Regards, Guillaume
Re: [pygame] Tentative patch for metrics font method
Hi Lenard, Thank you for helping. I have NO knowledge of programming for Python/C interface. I tried just to copy paste from above methods I guess I should try to learn a bit before writing patches. I also need to set up a dev system. On my Linux box, I had problem with non appearing characters (garbage) when trying to display english characters using the Kochi font. I don't know how it would work if one would try this in Windows. This would be the only way to trigger the character is not in the font as per the SDL_TTF doc. Regarding the exception, I don't have strong opinions, I tend to be conservative with raising exceptions and maybe one should raise an exception when the string passed as parameter is empty but... I am not convinced. But I will let official maintainers make the best choice. Regards, Guillaume On 1/19/07, Lenard Lindstrom [EMAIL PROTECTED] wrote: Guillaume Proux wrote: Hi, I just started using Freevo (based on pygame) and I have some issues with fonts. Apparently if one tries to render a string where not all chars are in the font, there is no error and we get garbage out. There is ONE function in SDL_TTF that can tell if a character is in the font or not. This is GlyphMetrics. So I made a tentative patch (i don't have a dev env ready therefore I haven't even compiled it so I would appreciate if somebody could try it out) to add the metrics method to fonts. If a call to this method returns None, then it will mean that this character cannot be rendered, which is what I will need in Freevo to decide to switch to a different font. Please let me know if this actually compiles and if it works! I compiled it on Windows with Mingw. The line: int minx, int maxx, int miny, int maxy, int advance; is incorrect. I removed the additional int's. I also saw that font_metrics returned NULL on the last line. I assumed this it returns None in this case: Py_INCREF(Py_None); return Py_None; With these changes it compiled and ran. It would be nice if a test case were included. I could not get it to return None. It always returned a tuple. Some other concerns. In several checks font_metrics returns NULL when string[0] is 0 without raising an exception. Also, raising an exception instead of returning None might be more Pythonic when a character is not in the font. But I can't think of a good exception in this case as ValueError should be raised for an empty string. -- Lenard Lindstrom [EMAIL PROTECTED]
Re: [pygame] Problem with mouse cursor in fullscreen tablet-mode
Take a look at Art Rage: http://www.ambientdesign.com/artrage.html Wow, that is such a nice program. When you realize that Alias asks about 10 times more money for a program that is not even remotely as nice! Thank you for the tip. Regards, Guillaume
Re: [pygame] movie
Hi Brian, Is this for Windows? Using py2exe you should be able to create an executable that you could call from a common screensaver code. What is exactly your question? Do you have a graphical model of what you want to do? Have you made hand-written notes that you could publish here? Regards, Guillaume