mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-04-04 19:12:28 -04:00
Removed pocket related things
This commit is contained in:
parent
f8e14d7040
commit
67412125df
@ -1,7 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import os
|
import os
|
||||||
import webbrowser
|
import webbrowser
|
||||||
import pocket
|
#import pocket
|
||||||
import sound_lib
|
import sound_lib
|
||||||
import paths
|
import paths
|
||||||
import widgetUtils
|
import widgetUtils
|
||||||
@ -15,7 +15,7 @@ from extra.autocompletionUsers import settings
|
|||||||
from pubsub import pub
|
from pubsub import pub
|
||||||
import logging
|
import logging
|
||||||
import config_utils
|
import config_utils
|
||||||
from pocket_utils import authorisationHandler
|
#from pocket_utils import authorisationHandler
|
||||||
import BaseHTTPServer
|
import BaseHTTPServer
|
||||||
log = logging.getLogger("Settings")
|
log = logging.getLogger("Settings")
|
||||||
import keys
|
import keys
|
||||||
@ -147,11 +147,11 @@ class accountSettingsController(globalSettingsController):
|
|||||||
self.dialog.set_value("sound", "session_mute", self.config["sound"]["session_mute"])
|
self.dialog.set_value("sound", "session_mute", self.config["sound"]["session_mute"])
|
||||||
self.dialog.set_value("sound", "soundpack", self.config["sound"]["current_soundpack"])
|
self.dialog.set_value("sound", "soundpack", self.config["sound"]["current_soundpack"])
|
||||||
self.dialog.create_services()
|
self.dialog.create_services()
|
||||||
if self.config["services"]["pocket_access_token"] == "":
|
# if self.config["services"]["pocket_access_token"] == "":
|
||||||
self.dialog.services.set_pocket(False)
|
# self.dialog.services.set_pocket(False)
|
||||||
else:
|
# else:
|
||||||
self.dialog.services.set_pocket(True)
|
# self.dialog.services.set_pocket(True)
|
||||||
widgetUtils.connect_event(self.dialog.services.pocketBtn, widgetUtils.BUTTON_PRESSED, self.manage_pocket)
|
# widgetUtils.connect_event(self.dialog.services.pocketBtn, widgetUtils.BUTTON_PRESSED, self.manage_pocket)
|
||||||
self.dialog.set_value("services", "apiKey", self.config["sound"]["sndup_api_key"])
|
self.dialog.set_value("services", "apiKey", self.config["sound"]["sndup_api_key"])
|
||||||
self.dialog.realize()
|
self.dialog.realize()
|
||||||
self.dialog.set_title(_(u"Account settings for %s") % (self.user,))
|
self.dialog.set_title(_(u"Account settings for %s") % (self.user,))
|
||||||
|
@ -280,8 +280,8 @@ class servicesPanel(wx.Panel):
|
|||||||
apiKeyBox.Add(apiKeyLabel, 0, wx.ALL, 5)
|
apiKeyBox.Add(apiKeyLabel, 0, wx.ALL, 5)
|
||||||
apiKeyBox.Add(self.apiKey, 0, wx.ALL, 5)
|
apiKeyBox.Add(self.apiKey, 0, wx.ALL, 5)
|
||||||
mainSizer.Add(apiKeyBox, 0, wx.ALL, 5)
|
mainSizer.Add(apiKeyBox, 0, wx.ALL, 5)
|
||||||
self.pocketBtn = wx.Button(self, -1)
|
# self.pocketBtn = wx.Button(self, -1)
|
||||||
mainSizer.Add(self.pocketBtn, 0, wx.ALL, 5)
|
# mainSizer.Add(self.pocketBtn, 0, wx.ALL, 5)
|
||||||
self.SetSizer(mainSizer)
|
self.SetSizer(mainSizer)
|
||||||
|
|
||||||
def set_pocket(self, active=True):
|
def set_pocket(self, active=True):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user