Exemple #1
0
 def show_action_dialog(self):
     from core import api
     api.init()
     dlg = ActionDialog(self.GetTopWindow(), api.ACTIONS,
         size=(400, 500))
     dlg.ShowModal()
     dlg.Destroy()
Exemple #2
0
def _console(paths, settings):
    from core.api import init
    init()
    from console import console
    if paths and has_ext(paths[0], INFO['extension']):
        console.main(actionlist=paths[0], paths=paths[1:], settings=settings)
    else:
        console.main(actionlist='', paths=paths, settings=settings)
Exemple #3
0
 def show_action_dialog(self):
     from core import api
     api.init()
     dlg = ActionDialog(self.GetTopWindow(),
                        api.ACTIONS,
                        size=(400, 500))
     dlg.ShowModal()
     dlg.Destroy()
Exemple #4
0
def _console(paths, settings):
    from core.api import init
    init()
    from console import console
    if paths and has_ext(paths[0], INFO['extension']):
        console.main(actionlist=paths[0], paths=paths[1:], settings=settings)
    else:
        console.main(actionlist='', paths=paths, settings=settings)
Exemple #5
0
def start_console(paths, settings):
    from core.api import init
    init()
    from console import console
    if paths and system.has_ext(paths[0], CONTEXT['app_extension']):
        console.main(actionlist=paths[0], paths=paths[1:], settings=settings)
    else:
        console.main(actionlist='', paths=paths, settings=settings)
Exemple #6
0
 def show_frame(self):
     #do all application initialisation
     self.report = []
     self.init()
     api.init()
     #create frame
     frame = Frame(self.filename, None, -1, CONTEXT['app_title'])
     frame.menu_tools.Check(frame.menu_tools_safe.GetId(),
                            formField.get_safe())
     frame.CentreOnScreen()
     frame.Show()
     self.SetTopWindow(frame)
     frame.enable_collapse_automatic(self.settings['collapse_automatic'])
Exemple #7
0
 def show_frame(self):
     #do all application initialisation
     self.init()
     api.init()
     #create frame
     frame = Frame(self.filename, None, -1, ct.TITLE)
     frame.menu_tools.Check(frame.menu_tools_safe.GetId(),
         formField.get_safe())
     frame.CentreOnScreen()
     frame.Show()
     self.SetTopWindow(frame)
     frame.enable_collapse_automatic(self.settings['collapse_automatic'])
     #delete splash
     self.splash.Hide()
     self.splash.Destroy()
     del self.splash
Exemple #8
0
 def OnInit(self):
     wx.InitAllImageHandlers()
     #do all application initialisation
     self.init()
     api.init()
     self.report = []
     #check for action list
     if self.actionlist == 'recent':
         self.actionlist = self.get_action_list(
             self.get_action_list_files() + \
             self.settings['file_history'])
     if self.actionlist is None:
         return 0
     #create frame
     frame = DropletFrame(self.actionlist, self.paths, None, -1, ct.TITLE)
     frame.Hide()
     self.SetTopWindow(frame)
     return 1
Exemple #9
0
#!/usr/bin/env python
"""Test Task itself"""


import time
import sys
sys.dont_write_bytecode = True    # Prevents from creating cache files

from core.sqldb import db
from core.logger import log
import core.config as config
import core.api as api


if __name__ == "__main__":
    api.init()

    starttime = time.time()
    api.get_vlc(config.vlan['ver1'])
    api.get_vlc(config.vlan['ver2'])
    api.get_videofile()

    api.build_vlc(config.vlan['ver1'])
    api.build_vlc(config.vlan['ver2'])

    api.collectstats(config.vlan['ver1'])
    api.collectstats(config.vlan['ver2'])
    endtime = time.time()

    if config.gcov is True:
        gcov = (api.getgcov(config.vlan['ver1']),