On Wed, 11 Jun 2008, Gary Herron wrote:
> bootkey wrote:
> > I've installed pyglet on WinXP and I'm trying to run Hello World as
> > follows:
> >
> > import pyglet
> > win = pyglet.window.Window()
>
> Both pyglet and pyglet.window are modules and must be imported.  Try
>   import pyglet.window
> after the first import.
>
> Also:  I've got two different versions of pyglet (neither of them being
> that latest version) installed on two different platforms (Linux and
> Windows).  In one case the single import works (and apparently does the
> second import automatically), and in the other case I need to explicitly
> perform the second import.   So... your mileage may vary depending on
> your pyglet version and your platform.

It should only depend on the pyglet version. Version 1.0 will require multiple 
imports. Version 1.1 will allow access to "pyglet.window" with a 
single "import pyglet" statement.


    Richard

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

Reply via email to