Exemplo n.º 1
0
 def interaction(self, *args, **kwargs):
     _stdin = sys.stdin
     try:
         sys.stdin = open('/dev/stdin')
         QtCore.pyqtRemoveInputHook()
         pdb.Pdb.interaction(self, *args, **kwargs)
     finally:
         sys.stdin = _stdin
         QtCore.pyqtRestoreInputHook()
Exemplo n.º 2
0
def debug_trace():
    # http://stackoverflow.com/questions/1736015/debugging-a-pyqt4-app
    from ipdb import set_trace
    QtCore.pyqtRemoveInputHook()
    set_trace()
Exemplo n.º 3
0
def debug_trace():
    # http://stackoverflow.com/questions/1736015/debugging-a-pyqt4-app
    from ipdb import set_trace
    QtCore.pyqtRemoveInputHook()
    set_trace()
Exemplo n.º 4
0
Arquivo: qt.py Projeto: pauloborges/tg
def initialize():
    global app
    app = QtGui.QApplication([])
    QtCore.pyqtRemoveInputHook()
    return app
Exemplo n.º 5
0
def debug_trace():
    from pdb import set_trace
    QtCore.pyqtRemoveInputHook()
    set_trace()