fixed bug with settings. interface and privacy settings added
This commit is contained in:
parent
b9937c13cd
commit
635feb3532
4 changed files with 39 additions and 3 deletions
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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue