Hello,

Today is 

  Tuesday, 12/11/2012.  

The current release of Pyglet is 
  
  Pyglet 1.1.4. 

I'm running:

  OSX 10.6.8 (Snow Leopard)
  Python 2.7.1
  gcc 4.2.1.

I tried downloading the current release of pyglet, but the basic 
tutorial sample..

----
window = pyglet.window.Window()

label = pyglet.text.Label(
    'Hello, world',
    font_name = 'Times New Roman',
    font_size = 36,
    x = window.width//2,
    y = window.height//2,
    anchor_x = 'center',
    anchor_y = 'center'
)

@window.event
def on_draw():
    window.clear()
    label.draw()

pyglet.app.run()
----

..bombed out, it wasn't able to create a window.  It seemed to be some 
kind of OS library level mismatch; some carbon call was missing.

Googling revealed relatively recent commentary in a thread about the 
problem, where some people talked about resolving it by using the 
"homebrew" version (?) of Python rather than the system bundled 
version.  They also mentioned that pyglet under OSX depends on 
carbon rather than cocoa, and uses 32 bit stuff.

I looked at the source code for the current release (1.1.4), and saw that 
under OSX it does indeed appear to use carbon and so on (if "darwin" is 
the platform name string.. a bit odd that that would be so, under 10.6.8, 
but it must be, somehow, since the error message mentioned carbon 
multiple times), so I downloaded and installed the development version 
(current trunk, I guess?) of Pyglet. 

Even with the system-bundled Python, on OSX 10.6.8, the development 
release of Pyglet successfully creates a window, but it's not user-
resizeable.  

After looking at some documentation, I tried passing in resizeable=True 
to the window constructor, like this:

window = pyglet.window.Window(resizable = True)

..but this still does not result in a user-resizable window.  There's no 
scrollbar on the right, and no resize-handle at the lower right (and 
hovering or clicking and dragging the mouse down there is fruitless).

I also tried this code:

platform = pyglet.window.get_platform()
display = platform.get_default_display()
screen = display.get_default_screen()
config = screen.get_best_config()
window = pyglet.window.Window(config = config, resizable = True)

..but that still didn't result in a user-resizable window.  I also tried 
setting the minimum and maximum size, but that didn't help.  

I searched the documentation for anything relevant to controlling 
whether or not that right hand scrollbar appears, but didn't find 
anything.

I notice also that right clicking on the dock icon and clicking on "Quit" 
does not close the program / window.  (I guess I must need to respond 
to a window event to get Quit working?)

Thanks for any help,

Shavais



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