I can't get the basic hello world to work at all!? I've tried it in
Windows and in Linux and am having problems with both. There are
other threads with Hello World issues, but they are not the same as
mine. Below is a sample session from Windows...
C:\Standalone\pyglet-1.0>python
ActivePython 2.5.1.1 (ActiveState Software Inc.) based on
Python 2.5.1 (r251:54863, May 1 2007, 17:47:05) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pprint import pprint as pp
>>> import pyglet
>>> pyglet.__version__
'$Id: __init__.py 1591 2008-01-16 13:07:27Z Alex.Holkner $'
>>> pp(pyglet.options)
{'audio': ('directsound', 'openal', 'alsa', 'silent'),
'debug_font': False,
'debug_gl': True,
'debug_media': False,
'debug_win32': False,
'font': ('gdiplus', 'win32'),
'vsync': None}
>>> pyglet.window
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'window'
>>> from pyglet import window
>>> pyglet.window
<module 'pyglet.window' from 'pyglet\window\__init__.pyc'>
>>> window = pyglet.window.Window()
pyglet\window\win32\__init__.py:548: UserWarning: Could not set vsync;
unsupported extension.
warnings.warn('Could not set vsync; unsupported extension.')
>>> # empty window appeared at least
...
>>> label = pyglet.text.Label('Hello, world',
... font_name='Times New Roman',
... font_size=36,
... x=window.width//2, y=window.height//2,
... halign='center', valign='center')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'text'
>>> pp(dir(pyglet))
['__builtins__',
'__doc__',
'__docformat__',
'__file__',
'__name__',
'__path__',
'__version__',
'_enable_optimisations',
'_option_types',
'_read_environment',
'_require_ctypes_version',
'event',
'gl',
'options',
'os',
'sys',
'version',
'window']
>>>
I tried the "from pyglet import window" based on random thing I saw in
another hello world thread. I can't get pyglet.text in the same
fashion.
Anyone know what gives? I won't bother posting a linux transcript...
the gist is the same. Primarily that after I import pyglet there is
no such thing as pyglet.window!?!?
In Windows I've installed pyglet both from the msi and from source/
setup.py (with avbin in system32). Clean each time. Neither work.
With Linux I used easy_install.
This package looks very useful/promising... I hope it is just
something really stupid I'm doing (or not!).
Russ
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---