On Thu, Jul 26, 2012 at 11:27 PM, Andre D <[email protected]> wrote: > You are confusing multiple screen with multiple displays (Multiple > separate X11 servers for an example). The only difference they are > proposing (which would affect you) is instead of get_default_display() you > should be using: > > > pyglet.canvas.Display.get_screens() > > Thanks for the clarification. In that case I see nothing wrong with the proposed change, if (on non-X11 platforms) it would just be a deprecation of the old interface, i.e. if it still worked for now but gave a warning about future removal (and a hint about what code to use instead).
- Bruce Smith > > > On Monday, July 23, 2012 6:03:04 AM UTC-4, Jon wrote: >> >> >> >> On Tuesday, July 17, 2012 6:41:01 PM UTC+1, Bruce Smith wrote: >>> >>> On Tue, Jul 17, 2012 at 3:13 AM, anatoly techtonik wrote: >>> >>>> It looks like it is hard to get multiple displays working right in >>>> cross-platform manner. Should we remove deprecated API to make things less >>>> confusing? >>>> >>>> http://code.google.com/p/**pyglet/issues/detail?id=586 >>>> <http://code.google.com/p/pyglet/issues/detail?id=586> >>> >>> >>> Assuming they still work for some platforms, and presuming that some >>> people are relying on this feature in their specific applications, it seems >>> to me more friendly to just warn in the readme and documentation that this >>> feature doesn't work properly on all systems. (And if practical to provide >>> a list, or point to a wiki page, which lists the systems it works on or is >>> known to not work on.) >>> >>> - Bruce Smith >>> >> >> I agree with Bruce. For our software (psychopy) we use the pyglet's >> multi-display handling a great deal and it would be a shame to see it go >> away. On 1.1.4 we use this code: >> >> allScrs = >> pyglet.window.get_platform().**get_default_display().get_**screens() >> >> if len(allScrs) > requestedScreen: >> screen = allScrs[requestedScreen] >> >> Although the pyglet call looks long and contrived, it seems to work >> correctly on all systems (we have over 2000 active users and I'm sure >> someone would have complained if multi-screen handling didn't work on their >> system). >> >> Jon >> > -- > You received this message because you are subscribed to the Google Groups > "pyglet-users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/pyglet-users/-/KYZyfud1WF4J. > > 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. > -- 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.
