Exemplo n.º 1
0
Arquivo: loader.py Projeto: bernt/pymt
    def __init__(self):
        loading_png_fn = os.path.join(pymt_data_dir, 'loader.png')
        error_png_fn = os.path.join(pymt_data_dir, 'error.png')

        self.loading_image = ImageLoader.load(loading_png_fn)
        self.error_image = ImageLoader.load(error_png_fn)

        self._q_load  = collections.deque()
        self._q_done  = collections.deque()
        self._client  = SafeList()
        self._running = False
        self._start_wanted = False

        getClock().schedule_interval(self._update, 1 / 25.)
Exemplo n.º 2
0
Arquivo: loader.py Projeto: bernt/pymt
 def _load_local(self, filename):
     '''(internal) Loading a local file'''
     return ImageLoader.load(filename)
Exemplo n.º 3
0
 def _load_local(self, filename):
     """(internal) Loading a local file"""
     return ImageLoader.load(filename)
Exemplo n.º 4
0
 def error_image(self):
     '''Image used for error (readonly)'''
     if not self._error_image:
         error_png_fn = os.path.join(pymt_data_dir, 'error.png')
         self._error_image = ImageLoader.load(filename=error_png_fn)
     return self._error_image
Exemplo n.º 5
0
 def loading_image(self):
     '''Image used for loading (readonly)'''
     if not self._loading_image:
         loading_png_fn = os.path.join(pymt_data_dir, 'loader.png')
         self._loading_image = ImageLoader.load(filename=loading_png_fn)
     return self._loading_image
Exemplo n.º 6
0
 def _load_local(self, filename):
     '''(internal) Loading a local file'''
     return ImageLoader.load(filename)