添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Hi @11111 , the backends package is used to set up a context in which to draw objects in a Window , using either pyglet , pygame , or glfw . Each Backend class defines the core low-level functions required by a Window class, such as the ability to create an OpenGL context and flip the window.

The ‘.’ indicates a relative import - “A single dot means that the module or package referenced is in the same directory as the current location”. See absolute vs relative imports . In this instance, the window module imports the backends package using relative imports because the backends package is in the same directory as the window module, which contains the Window class used for drawing your stim etc.