예제 #1
0
def main():
    options, flags = gscript.parser()

    import wx

    from grass.script.setup import set_gui_path

    set_gui_path()

    from dbmgr.manager import AttributeManager

    mapName = gscript.find_file(options["map"], element="vector")["fullname"]
    if not mapName:
        gscript.set_raise_on_error(False)
        gscript.fatal(_("Vector map <%s> not found") % options["map"])

    app = wx.App()
    gscript.message(
        _("Loading attribute data for vector map <%s>...") % mapName)
    f = AttributeManager(
        parent=None,
        id=wx.ID_ANY,
        base_title=_("Attribute Table Manager - GRASS GIS"),
        size=(900, 600),
        vectorName=mapName,
    )
    f.Show()

    app.MainLoop()
예제 #2
0
def main():
    options, flags = gscript.parser()

    import wx

    from grass.script.setup import set_gui_path
    set_gui_path()

    from core.utils import _
    from dbmgr.manager import AttributeManager

    mapName = gscript.find_file(options['map'], element='vector')['fullname']
    if not mapName:
        gscript.set_raise_on_error(False)
        gscript.fatal(_("Vector map <%s> not found") % options['map'])

    app = wx.App()
    gscript.message(
        _("Loading attribute data for vector map <%s>...") % mapName)
    f = AttributeManager(parent=None,
                         id=wx.ID_ANY,
                         title="%s - <%s>" %
                         (_("GRASS GIS Attribute Table Manager"), mapName),
                         size=(900, 600),
                         vectorName=mapName)
    f.Show()

    app.MainLoop()
예제 #3
0
def main():
    mapName = grass.find_file(options['map'], element='vector')['fullname']
    if not mapName:
        grass.set_raise_on_error(False)
        grass.fatal(_("Vector map <%s> not found") % options['map'])

    app = wx.App()
    grass.message(_("Loading attribute data for vector map <%s>...") % mapName)
    f = AttributeManager(parent=None,
                         id=wx.ID_ANY,
                         title="%s - <%s>" %
                         (_("GRASS GIS Attribute Table Manager"), mapName),
                         size=(900, 600),
                         vectorName=mapName)
    f.Show()

    app.MainLoop()