Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(49)  |  Call(41)  |  Derive(0)  |  Import(8)

        def refresh_gui(delay=0):
    while gtk.events_pending():
        gtk.main_iteration_do(block=False)
    time.sleep(delay)
        


src/p/i/pida-0.6.2/pida/ui/splash.py   pida(Download)
import gtk, gobject
 
from pida.utils.testing import refresh_gui
from pida.core.environment import get_pixmap_path
 
    def show_splash(self):
        self.show()
        refresh_gui()
 
    def update_progress(self, percent, what):

src/p/i/pida-0.6.2/tests/ui/test_window.py   pida(Download)
 
from pida.utils.testing import refresh_gui
from pida.utils.testing.mock import Mock
from pida.ui.window import PidaWindow
from pida.core.boss import Boss
def test_create(svc):
    win = PidaWindow(svc)
    refresh_gui()
 
 

src/p/i/pida-0.6.2/tests/ui/test_views.py   pida(Download)
 
from unittest import TestCase
 
from pida.utils.testing import refresh_gui
 
    def setUp(self):
        self._v = TestView(self)
        refresh_gui()
 
    def test_has_toplevel(self):
    def setUp(self):
        self._v = TestView(self)
        self._clicked = False
        refresh_gui()
 
    def test_event_callback(self):
        self.assertEqual(self._clicked, False)
        self._v.b1.clicked()
        refresh_gui()
    def setUp(self):
        self._v = TestView(self)
        self._clicked = False
        refresh_gui()
 

src/p/i/pida-0.6.2/tests/ui/test_uimanager.py   pida(Download)
import gtk
 
from pida.utils.testing import refresh_gui
 
from pida.ui.uimanager import PidaUIManager
    def setUp(self):
        self.uim = PidaUIManager()
        refresh_gui()
 
    def test_base_xml(self):
    def test_menubar(self):
        menubar = self.uim.get_menubar()
        refresh_gui()
        self.assert_(isinstance(menubar, gtk.MenuBar))
        [self.assert_(isinstance(m, gtk.MenuItem)) for m in menubar.get_children()]
 
    def test_toolbar(self):
        toolbar = self.uim.get_toolbar()
        toolbar  # pyflakes
        refresh_gui()
            </menubar>"""
        )
        refresh_gui()
        menubar = self.uim.get_menubar()
        fm = menubar.get_children()[0]

src/p/i/pida-0.6.2/tests/ui/test_priorityeditor.py   pida(Download)
 
 
from pida.utils.testing import refresh_gui
 
from pida.ui.prioritywindow import PriorityEditorView, Category, Entry
def pytest_funcarg__view(request):
    view = PriorityEditorView(None, None)
    refresh_gui()
    return view
 
def test_functionality(view):
    root = TestRootCategory()
    view.set_category_root(root)
    view.selection_tree.selected_item = root._cats[1]._subcats[0]
    refresh_gui()
    view.customize_button.toggled()
    view.customize_button.toggled()
    view.selection_tree.selected_item = root._cats[1]._subcats[0]
    refresh_gui()

src/p/i/pida-0.6.2/tests/ui/test_besttextview.py   pida(Download)
 
from pida.services.language import DOCTYPES
from pida.utils.testing import refresh_gui
 
 
            #self.textview.do_event(self.textview, event)
            self.textview.emit('key-press-event', event)
            refresh_gui()
            if do:
                assert self.textview.get_buffer().props.text == "a%s" % txt

src/p/i/pida-0.6.2/tests/core/test_actions.py   pida(Download)
from unittest import TestCase
 
from pida.utils.testing import refresh_gui
 
class MyActions(ActionsConfig):
    def test_action(self):
        self.assertEqual(self.banana, False)
        self._acts._actions.get_action('banana').activate()
        refresh_gui()
        self.assertEqual(self.banana, True)
    def test_action_callback(self):
        self.assertEqual(self.banana, False)
        self._act.activate()
        refresh_gui()
        self.assertEqual(self.banana, True)

src/p/i/pida-0.6.2/pida/utils/puilder/tests/test_model.py   pida(Download)
 
import py
from json import dumps
 
from pida.utils.testing import refresh_gui
def test_shell_action_view_command(a):
    v = ShellActionView()
    v._set_action(a)
    refresh_gui()
    v.command.set_text('echo 456')
    refresh_gui()
def test_shell_action_view_cwd(a):
    v = ShellActionView()
    v._set_action(a)
    refresh_gui()
    v.cwd_on.set_active(True)
def test_python_action_view(a):
    v = PythonActionView()
    v._set_action(a)
    refresh_gui()
    v.text.get_buffer().set_text('print 1')