Tool/software: Linux
I have a python script that opens a window and displays a .bmp file of my choosing. But it displays that bmp file on the main screen, i.e., the one that shows the graphical user interface. I want it to display on the DLPD instead. What is the Linux magic that will allow that? I've searched high and low and haven't found many clues...
Here's the .bmp display code, in case it helps:
#!/usr/bin/python
import os
import pygame, sys
from pygame.locals import *
import pyglet
platform = pyglet.window.get_platform()
display = platform.get_default_display()
for screen in display.get_screens():
print screen
# set window size to match picture size
width = 640
height = 480
# initialise pygame
pygame.init()
screen = pygame.display.set_mode((width,height),1,16)
#load picture
background= pygame.image.load('ken.bmp')
#display picture
screen.blit(background,(0,0))
pygame.display.flip()
raw_input()