예제 #1
0
 def startScriptRunnerApp(self):
     self.task_to_menu_item_dict = {}
     self.app_name_to_task_dict = {}
     w = gtk.Window()
     self.window = w
     w.set_size_request(100, 100)
     w.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_UTILITY)#Hide from the taskbar.
     w.connect('destroy', lambda w: gtk.main_quit())
     self.startDragMove()
     self.setDropTarget()
     self.icon = gtkTaskbarIconForConsole.MyStatusIcon(self)
     w.set_keep_above(True)
     w.set_opacity(0.5)
     w.set_decorated(False)#Disable window frame board, work in company machine
     w.show_all()
     self.start_basic_service()
     for i in self.initialApps:
         fullP = fileTools.findFileInProduct(i)
         if fullP is None:
             fullP = fileTools.findAppInProduct(i)
             if fullP is None:
                 print i, 'not found ---- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
                 continue
         #print '-----------------------------',fullP
         self.create_console_wnd_for_app([fullP])
예제 #2
0
 def start_basic_app(self, app_name):
     full_path = fileTools.findFileInProduct(app_name)
     if full_path is None:
         full_path = fileTools.findAppInProduct(app_name)
         if full_path is None:
             print app_name, 'not found ---- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
             return None
     return self.create_console_wnd_for_app([full_path])