| Index: third_party/twisted_8_1/twisted/internet/pyuisupport.py
|
| diff --git a/third_party/twisted_8_1/twisted/internet/pyuisupport.py b/third_party/twisted_8_1/twisted/internet/pyuisupport.py
|
| deleted file mode 100644
|
| index a845e19b4ba3c3062762a7cd70515f3019bef57e..0000000000000000000000000000000000000000
|
| --- a/third_party/twisted_8_1/twisted/internet/pyuisupport.py
|
| +++ /dev/null
|
| @@ -1,37 +0,0 @@
|
| -# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
|
| -# See LICENSE for details.
|
| -
|
| -
|
| -"""
|
| -This module integrates PyUI with twisted.internet's mainloop.
|
| -
|
| -Maintainer: U{Jp Calderone<mailto:exarkun@twistedmatrix.com>}
|
| -
|
| -See doc/examples/pyuidemo.py for example usage.
|
| -"""
|
| -
|
| -# System imports
|
| -import pyui
|
| -
|
| -def _guiUpdate(reactor, delay):
|
| - pyui.draw()
|
| - if pyui.update() == 0:
|
| - pyui.quit()
|
| - reactor.stop()
|
| - else:
|
| - reactor.callLater(delay, _guiUpdate, reactor, delay)
|
| -
|
| -
|
| -def install(ms=10, reactor=None, args=(), kw={}):
|
| - """
|
| - Schedule PyUI's display to be updated approximately every C{ms}
|
| - milliseconds, and initialize PyUI with the specified arguments.
|
| - """
|
| - d = pyui.init(*args, **kw)
|
| -
|
| - if reactor is None:
|
| - from twisted.internet import reactor
|
| - _guiUpdate(reactor, ms / 1000.0)
|
| - return d
|
| -
|
| -__all__ = ["install"]
|
|
|