Add files via upload

This commit is contained in:
themixray 2021-11-08 14:01:51 +03:00 committed by GitHub
parent f40412c645
commit d8ad27c1b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View file

@ -14,14 +14,15 @@ import tempfile as _tf
import pickle as _p
class win(_surface):
def __init__(self, iconpath):
def __init__(self, iconpath=None):
self._orig = _pg.display.get_surface()
super().__init__(self._orig.get_size())
self._orig = _pg.display.get_surface()
self._clock = _pg.time.Clock()
self._withfps = False
self._iconpath = iconpath
self.tray = _tray(self.title,iconpath)
if iconpath != None:
self.tray = _tray(self.title,iconpath)
def update(self, fps=-1):
if fps != -1:
self._clock.tick(fps)

Binary file not shown.

View file

@ -14,14 +14,15 @@ import tempfile as _tf
import pickle as _p
class win(_surface):
def __init__(self, iconpath):
def __init__(self, iconpath=None):
self._orig = _pg.display.get_surface()
super().__init__(self._orig.get_size())
self._orig = _pg.display.get_surface()
self._clock = _pg.time.Clock()
self._withfps = False
self._iconpath = iconpath
self.tray = _tray(self.title,iconpath)
if iconpath != None:
self.tray = _tray(self.title,iconpath)
def update(self, fps=-1):
if fps != -1:
self._clock.tick(fps)