file Function
Defined in pyglet.resource
-
file(self, name, mode='rb')
Load a resource.
Parameters: |
- name (str) – Filename of the resource to load.
- mode (str) – Combination of r, w, a, b and t characters
with the meaning as for the builtin open function.
|
Return type: | file object
|