简体   繁体   English

在第二个屏幕上显示 Vispy

[英]Vispy Display on Second Screen

I am using Vispy to display some real-time signals, based on the example on the webpage.根据网页上的示例,我正在使用 Vispy 显示一些实时信号。 In particular I'm using app.Canvas to create and update the display.特别是我正在使用 app.Canvas 来创建和更新显示。

Is there a way to specify geometry information when then canvas is created?有没有办法在创建 canvas 时指定几何信息? Ideally I'd like to specify the size, coordinates and monitor for the new window.理想情况下,我想为新的 window 指定尺寸、坐标和监视器。 But specifying the monitor is the most important part.但是指定监视器是最重要的部分。

You can specify canvas size and position by doing:您可以通过执行以下操作指定 canvas 大小和 position:

from vispy import app
pos_x, pos_y, width, height = 200, 200, 200, 200 #example
canvas = app.Canvas(size=(width, height), position=(pos_x, pos_y))
canvas.show()
app.run()

Have you tried to specify the monitor by adjusting the position?您是否尝试通过调整 position 来指定显示器?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM