Skip to content

Instantly share code, notes, and snippets.

@rpavlik
Created May 1, 2009 16:07
Show Gist options
  • Save rpavlik/105109 to your computer and use it in GitHub Desktop.
Save rpavlik/105109 to your computer and use it in GitHub Desktop.
if __name__ == '__main__':
display=pyglet.window.get_platform().get_default_display()
screens = display.get_screens()
wallfilename='wallpaper'+str(WIDTH)+'.png'
if len(screens) > 1:
#WIDTH=
w = MTWindow( fullscreen=True, config=screens[1].get_best_config())
#w = MTWindow( fullscreen=True, screens=screens[1])
else:
w = MTWallpaperWindow(wallpaper=wallfilename, fullscreen=False, width=WIDTH, height=HEIGHT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment