コード例 #1
0
ファイル: project.py プロジェクト: MichelKramer31/gps
    def open_project_wizard(on_open, *args, **kwargs):
        """
        Open the project wizard asynchronously, and call
        on_open (wizard, *args, **kwargs)
        """

        pygps.open_menu("/Project/New...", on_open, [], args, kwargs)
コード例 #2
0
    def open_project_wizard(on_open, *args, **kwargs):
        """
        Open the project wizard asynchronously, and call
        on_open (wizard, *args, **kwargs)
        """

        pygps.open_menu("/Project/New...", on_open, [], args, kwargs)
コード例 #3
0
ファイル: project.py プロジェクト: flyx/gps-osx
  def open_project_properties (on_open, *args, **kwargs):
    """Open the project properties editor asynchronously, and call
       on_open (dialog, notebook, *args, **kwargs),
       where notebook is the notebook found in the project properties
       dialog, so that you can easily change to a specific page
       inside the notebook:
           import pygps.notebook
           def on_pp (dialog, notebook):
              page = switch_notebook_page (notebook, "Switches")
           open_project_properties (on_pp)
    """

    pygps.open_menu ("/Project/Edit Project Properties",on_open,
               ["Project Properties Notebook"],
               args, kwargs, 2000)
コード例 #4
0
    def open_project_properties(on_open, *args, **kwargs):
        """
        Open the project properties editor asynchronously, and call
        on_open (dialog, treeview, *args, **kwargs),
        where treeview is the widget found on the left of the project
        properties dialog, so that you can easily change to a specific page
        inside the notebook:
            from pygps.tree import select_in_tree
            def on_pp (dialog, treeview):
               select_in_tree (treeview, 3, "Switches/Ada")
            open_project_properties (on_pp)
        """

        pygps.open_menu("/Project/Properties...", on_open,
                        ["Project Properties Tree"], args, kwargs, 2000)
コード例 #5
0
ファイル: project.py プロジェクト: MichelKramer31/gps
    def open_project_properties(on_open, *args, **kwargs):
        """
        Open the project properties editor asynchronously, and call
        on_open (dialog, treeview, *args, **kwargs),
        where treeview is the widget found on the left of the project
        properties dialog, so that you can easily change to a specific page
        inside the notebook:
            from pygps.tree import select_in_tree
            def on_pp (dialog, treeview):
               select_in_tree (treeview, 3, "Switches/Ada")
            open_project_properties (on_pp)
        """

        pygps.open_menu(
            "/Project/Properties...", on_open,
            ["Project Properties Tree"],
            args, kwargs, 2000)