コード例 #1
1
ファイル: driver.py プロジェクト: MichelKramer31/gps
def do_exit(timeout):
    """ Force an exit of GPS right now, logging as an error the contents
        of the Messages window. This is useful for capturing more traces
        for stalled tests that are about to get killed by rlimit.
    """
    timeout.remove()
    simple_error(GPS.Console("Messages").get_text())
    GPS.exit(force=1)
コード例 #2
0
def do_exit(timeout):
    """ Force an exit of GPS right now, logging as an error the contents
        of the Messages window. This is useful for capturing more traces
        for stalled tests that are about to get killed by rlimit.
    """
    timeout.remove()
    simple_error(GPS.Console("Messages").get_text())
    GPS.exit(force=1)
コード例 #3
0
    def internal_wait_until_no_tasks(timeout):
        if GPS.Task.list() == []:
            timeout.remove()

            # Tasks can update locations view, so wait until locations view
            # has completed its operations also.

            process_all_events()
            GLib.idle_add(internal_on_idle)
コード例 #4
0
ファイル: utils.py プロジェクト: MichelKramer31/gps
    def internal_wait_until_no_tasks(timeout):
        if GPS.Task.list() == []:
            timeout.remove()

            # Tasks can update locations view, so wait until locations view
            # has completed its operations also.

            process_all_events()
            GLib.idle_add(internal_on_idle)
コード例 #5
0
        def on_timeout(timeout):
            timeout.remove()

            field = get_widget_by_name("global-search")
            gps_not_null(field, "Global search field not found")
            field = get_widgets_by_type(Gtk.Entry, field)[0]
            gps_not_null(field, "Global search contains no GtkEntry")

            popup = get_widget_by_name("completion-list")
            gps_not_null(popup, "Global search's completion list not found")

            tree = get_widgets_by_type(Gtk.TreeView, popup)[0]

            on_open(*(popup, field, tree) + args, **kwargs)
コード例 #6
0
ファイル: utils.py プロジェクト: MichelKramer31/gps
        def on_timeout(timeout):
            timeout.remove()

            field = get_widget_by_name("global-search")
            gps_not_null(field, "Global search field not found")
            field = get_widgets_by_type(Gtk.Entry, field)[0]
            gps_not_null(field, "Global search contains no GtkEntry")

            popup = get_widget_by_name("completion-list")
            gps_not_null(popup, "Global search's completion list not found")

            tree = get_widgets_by_type(Gtk.TreeView, popup)[0]

            apply(on_open, (popup, field, tree) + args, kwargs)
コード例 #7
0
 def on_timeout(timeout):
     timeout.remove()
     mdi = GPS.MDI.get('Project Switches')
     tree = get_widgets_by_type(Gtk.TreeView,
                                mdi.get_child().pywidget())[0]
     on_open(*(mdi, tree) + args, **kwargs)
コード例 #8
0
 def on_timeout(timeout):
     if GPS.Command.list() == []:
         timeout.remove()
         cb(*args, **kwargs)
コード例 #9
0
 def on_timeout(timeout):
     timeout.remove()
     fun()
コード例 #10
0
ファイル: utils.py プロジェクト: zackboll/gps
 def on_timeout(timeout):
     if GPS.Command.list() == []:
         timeout.remove()
         apply(cb, args, kwargs)
コード例 #11
0
ファイル: utils.py プロジェクト: MichelKramer31/gps
 def on_timeout(timeout):
     timeout.remove()
     fun()
コード例 #12
0
ファイル: utils.py プロジェクト: MichelKramer31/gps
 def on_timeout(timeout):
     timeout.remove()
     mdi = GPS.MDI.get('Project Switches')
     tree = get_widgets_by_type(Gtk.TreeView,
                                mdi.get_child().pywidget())[0]
     apply(on_open, (mdi, tree) + args, kwargs)
コード例 #13
0
ファイル: utils.py プロジェクト: MichelKramer31/gps
 def on_timeout(timeout):
     if GPS.Command.list() == []:
         timeout.remove()
         apply(cb, args, kwargs)