Пример #1
1
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
    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
        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
 def on_timeout(timeout):
     if GPS.Command.list() == []:
         timeout.remove()
         apply(cb, args, kwargs)
Пример #11
0
 def on_timeout(timeout):
     timeout.remove()
     fun()
Пример #12
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]
     apply(on_open, (mdi, tree) + args, kwargs)
Пример #13
0
 def on_timeout(timeout):
     if GPS.Command.list() == []:
         timeout.remove()
         apply(cb, args, kwargs)