예제 #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
파일: 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)