Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 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)
Exemplo n.º 5
0
 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)
Exemplo n.º 6
0
 def __init__(self, ctx, args):
     self.ctx = ctx
     self.dialog = None
     self.res = get_current_resource(ctx, RES_DIR, RES_FILE)
Exemplo n.º 7
0
 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)
Exemplo n.º 8
0
 def __init__(self, ctx, args):
     self.ctx = ctx
     self.dialog = None
     self.res = get_current_resource(ctx, RES_DIR, RES_FILE)