Example #1
0
    def __init__(self, parent, *args, **kargs):
        self.repo = None
        self.win = parent
        self.themef = theme_file_get()
        self.colors = [(0,100,0,100), (0,0,100,100), (100,0,0,100),
                      (100,100,0,100), (0,100,100,100), (100,0,100,100)]

        Table.__init__(self, parent, homogeneous=True, padding=(0,0))
Example #2
0
    def __init__(self, parent, app, *args, **kargs):
        self.app = app
        self.themef = theme_file_get()
        self.colors = [(0,100,0,100), (0,0,100,100), (100,0,0,100),
                      (100,100,0,100), (0,100,100,100), (100,0,100,100)]

        self._itc = GenlistItemClass(item_style='egitu_commit',
                                     text_get_func=self._gl_text_get,
                                     content_get_func=self._gl_content_get)
        self._itcg = GenlistItemClass(item_style='egitu_group_index')

        Genlist.__init__(self, parent, homogeneous=True, mode=ELM_LIST_COMPRESS,
                         size_hint_expand=EXPAND_BOTH, size_hint_fill=FILL_BOTH)
        self.callback_realized_add(self._gl_item_realized)
        self.callback_unrealized_add(self._gl_item_unrealized)
        self.callback_selected_add(self._gl_item_selected)

        self._start_ref = None
Example #3
0
def main():

    # load config and create necessary folders
    options.load()
    if not os.path.exists(config_path):
        os.makedirs(config_path)

    # init elm
    elm.init()
    theme_extension_add(theme_file_get())

    # Egitu
    app = EgituApp(sys.argv[1:])
    app_instance_set(app) # Ugly :/

    # enter the mainloop
    elm.run()

    # mainloop done, shutdown
    elm.shutdown()
    options.save()

    return 0