big update: ui now show all info about user's profile. callbacks update. singleton added

This commit is contained in:
ingvar1995 2016-02-24 18:32:35 +03:00
parent 4d4c0cb56a
commit 92635a7c89
6 changed files with 73 additions and 31 deletions

View file

@ -19,3 +19,11 @@ def bin_to_string(raw_id):
def curr_directory():
return os.path.dirname(os.path.realpath(__file__))
class Singleton(object):
def __new__(cls):
if not hasattr(cls, 'instance'):
cls.instance = super(Singleton, cls).__new__(cls)
return cls.instance