First great commit for Gtk. It is partially functional now

This commit is contained in:
2015-04-03 16:57:08 -06:00
parent 9356a0544f
commit 2e32fa7ef2
44 changed files with 1814 additions and 110 deletions

View File

@@ -7,7 +7,9 @@ import paths
if platform.architecture()[0][:2] == "32":
lib = load_library("api_keys32", x86_path=paths.app_path("keys/lib"))
else:
lib = load_library("api_keys64", x64_path=paths.app_path("keys/lib"))
# lib = load_library("api_keys64", x64_path=paths.app_path("keys/lib"))
import linuxKeys
lib = linuxKeys
keyring = None
@@ -26,4 +28,4 @@ class Keyring(object):
return result.value
def get(self, func):
return getattr(self, "_call_method")("get_"+func)
return getattr(self, "_call_method")("get_"+func)

21
src/keys/linuxKeys.py Normal file
View File

@@ -0,0 +1,21 @@
def get_api_key():
return "8pDLbyOW3saYnvSZ4uLFg\0"
def get_api_secret():
return "YsgdrzY9B4yyYvYsyee78rKI3GshjHpenVS9LnFJXY\0";
#char *get_dropbox_api_key(){
#return "key\0";
#}
#char *get_dropbox_api_secret(){
#return "secret_key\0";
#}
#char *get_twishort_api_key(){
#return "key\0";
#}
#char *get_bts_user(){
#return "user\0";
#}
#char *get_bts_password(){
#return "pass\0";
#}