def execute_wizard(self): """ Start wizrad. """ try: import bookmarks.wizard.wizard bookmarks.wizard.wizard.BookmarksMenuWizard( self.ctx, get_current_resource(self.ctx, RES_DIR, RES_FILE)).execute() except Exception as e: print(e)
def execute_wizard(self): """ Start wizrad. """ try: import bookmarks.wizard.wizard bookmarks.wizard.wizard.BookmarksMenuWizard( self.ctx, get_current_resource(self.ctx, RES_DIR, RES_FILE) ).execute() except Exception as e: print(e)
def __init__(self, ctx, args): self.ctx = ctx self.valid = False self.frame = None self.popup = None self.labels = ("Name", "Tags", "Value", "Description") from bookmarks import RES_DIR, RES_FILE from bookmarks.tools import get_current_resource res = get_current_resource(ctx, RES_DIR, RES_FILE) self.translated = [res.get(label, label) for label in self.labels] self.initialize(args)
def load_res(): from bookmarks import RES_DIR, RES_FILE from bookmarks.tools import get_current_resource return get_current_resource(self.ctx, RES_DIR, RES_FILE)
def __init__(self, ctx, args): self.ctx = ctx self.dialog = None self.res = get_current_resource(ctx, RES_DIR, RES_FILE)