Skip to content

Commit

Permalink
Change method name.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandernst committed May 15, 2011
1 parent e44f5e2 commit b62f353
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions amsn2/ui/front_ends/qt4/main_loop.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from amsn2.ui import base
import sys
import sys, os

from PyQt4 import QtCore
from PyQt4 import QtGui
Expand All @@ -10,7 +10,6 @@

class aMSNMainLoop(base.aMSNMainLoop):
def __init__(self, amsn_core):
import os
self._amsn_core = amsn_core
os.putenv("QT_NO_GLIB", "1") # FIXME: Temporary workaround for segfault
# caused by GLib Event Loop integration
Expand All @@ -26,12 +25,12 @@ def on_keyboard_interrupt(self, signal, stack):

def run(self):
self.idletimer = QtCore.QTimer(QtGui.QApplication.instance())
QtCore.QObject.connect(self.idletimer, QtCore.SIGNAL('timeout()'), self.on_idle)
QtCore.QObject.connect(self.idletimer, QtCore.SIGNAL('timeout()'), self.on_timeout)
self.idletimer.start(100)
signal.signal(signal.SIGINT, self.on_keyboard_interrupt)
self.app.exec_()

def on_idle(self):
def on_timeout(self):
iter = 0
while iter < 10 and self.gcontext.pending():
self.gcontext.iteration()
Expand Down

0 comments on commit b62f353

Please sign in to comment.