Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/g/r/gramps-3.4.2/src/gui/viewmanager.py   Gramps(Download)
from cli.grampscli import CLIManager
from gui.plug import tool
from gen.plug import (START, END)
from gen.plug import REPORT
from gen.plug.report._constants import standalone_categories
 
        # pdata.category is (string, trans-string):
        if pdata.order == START:
            viewstoshow[pdata.category[0]].insert(0, (pdata, viewclass) )
        else:

src/g/r/gramps-3.4.2/src/gui/navigator.py   Gramps(Download)
#
#-------------------------------------------------------------------------
from gen.plug import (START, END)
 
#-------------------------------------------------------------------------
 
        menu_item = gtk.MenuItem(title)
        if order == START:
            self.menu.prepend(menu_item)
            self.notebook.set_current_page(index)