pyglet resolution of screen into variables
<p>is there any options how to get values <code>height</code> and <code>width</code> of screen into variables using pyglet? I am able to print it but not extract these values.</p>

<pre><code>import pyglet

platform = pyglet.window.get_platform()
display = platform.get_default_display()
screen = display.get_screens()
</code></pre>

<p>-></p>

<pre><code>&gt;&gt;&gt; screen
[XlibScreen(display=&lt;pyglet.canvas.xlib.XlibDisplay object at 0x7f4644cf0990&gt;, x=0, y=0, width=1366, height=768, xinerama=0)]
&gt;&gt;&gt; 
</code></pre>

<p>Any idea? Thanks in advance.</p>