big update: ui now show all info about user's profile. callbacks update. singleton added
This commit is contained in:
parent
4d4c0cb56a
commit
92635a7c89
6 changed files with 73 additions and 31 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue