def get_state(sub_menu): """ :return The state of a plugin :rtype bool """ key = "activated" states = {TimetableSubMenu.__name__: settings.get_timetable_settings()[key], MailSubMenu.__name__: settings.get_email_settings()[key], NotificationSubMenu.__name__: settings.get_notification_settings()[key], TimeManagerSubMenu.__name__: settings.get_time_manager_settings()[key]} return states[sub_menu]
__author__ = 'Kristo Koert' import keyring from itc_kit.settings import settings print( keyring.get_password("EITC-kit", settings.get_email_settings()["username"]))
def __init__(self): threading.Thread.__init__(self) self.mail_settings = get_email_settings()
__author__ = 'Kristo Koert' import keyring from itc_kit.settings import settings print(keyring.get_password("EITC-kit", settings.get_email_settings()["username"]))