Пример #1
0
 def __init__(self):
     gtk.VBox.__init__(self)
     self.all_app_default_value = {}
     style.draw_background_color(self)
     self.media_handle = MediaAutorun()
     self.app_manager = AppManager()
     self.init_table()
Пример #2
0
    def setUp(self):
        self.app = create_app('testing')
        self.app_context = self.app.app_context()
        self.app_context.push()
        db.create_all()

        self.AM = AppManager()
        self.AM.init_app()
        self.AM.dataManager._store_permanent()
    def __init__(self):
        '''docstring for __'''
        gtk.VBox.__init__(self)
        style.draw_background_color(self)

        self.app = AppManager()
        self.content_type_list = [
            self.app.http_content_type, self.app.mail_content_type,
            self.app.editor_content_type, self.app.audio_content_type,
            self.app.video_content_type, self.app.photo_content_type
        ]

        self.app_table()
        self.web.connect("item-selected", self.item_select, 0)
        self.mail.connect("item-selected", self.item_select, 1)
        self.editor.connect("item-selected", self.item_select, 2)
        self.music.connect("item-selected", self.item_select, 3)
        self.movie.connect("item-selected", self.item_select, 4)
        self.pic.connect("item-selected", self.item_select, 5)