[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Chose a specific display...



Hi,


If you know where the display is, you could add it into the program.

eg, something like this could hack it in...

show_on_display = 2
total_displays = 3
total_width = 5760 # three 1920px wide displays.
x = (total_width / total_displays) * (show_on_display -1)

assert(x == 1920)


So you'd set the environment variable:
    os.environ['SDL_VIDEO_WINDOW_POS'] = "%s,0" % x



Of course, getting those variables is an annoying part.


cheers,