fixed bug with settings. interface and privacy settings added
This commit is contained in:
12
src/util.py
12
src/util.py
@@ -1,5 +1,7 @@
|
||||
import os
|
||||
import time
|
||||
from platform import system
|
||||
|
||||
|
||||
program_version = '0.0.1 (alpha)'
|
||||
|
||||
@@ -17,6 +19,16 @@ def curr_time():
|
||||
return time.strftime("%H:%M")
|
||||
|
||||
|
||||
def get_style(style):
|
||||
if style != 'default':
|
||||
return style
|
||||
else:
|
||||
if system() == 'Linux':
|
||||
return 'gtk'
|
||||
elif system() == 'Windows':
|
||||
return 'windows'
|
||||
|
||||
|
||||
class Singleton(object):
|
||||
|
||||
def __new__(cls, *args):
|
||||
|
||||
Reference in New Issue
Block a user