Ejemplo n.º 1
0
def main(application):
    import qt
    from twisted.internet import qtreactor
    app=qt.QApplication([])
    qtreactor.install(app)

    import sys
    from twisted.internet import reactor

    from shtoom.ui.qtui import ShtoomMainWindow
    UI = ShtoomMainWindow()
    UI.connectApplication(application)
    UI.show()

    from shtoom import log
    if application.getPref('stdout'):
        import sys
        log.startLogging(sys.stdout, setStdout=False)
    else:
        log.startLogging(UI.getLogger(), setStdout=False)

    reactor.addSystemEventTrigger('after', 'shutdown', app.quit )
    app.connect(app, qt.SIGNAL("lastWindowClosed()"), reactor.stop)

    return UI
Ejemplo n.º 2
0
# Copyright (C) 2004 Anthony Baxter
if __name__ == "__main__":
    import qt
    from twisted.internet import qtreactor

    app = qt.QApplication([])
    qtreactor.install(app)

from shtoommainwindow import ShtoomMainWindow as ShtoomBaseWindow
from dtmf import DTMF
from authdialog import ShtoomAuthDialog
from debugging import Debugging
from about import AboutDialog
from about import image0_data as LogoData

from shtoom.ui.base import ShtoomBaseUI

import sys
from twisted.python import log
from qt import *

import sys
from twisted.python import log


class AboutDialog(AboutDialog):
    def closeButton_pressed(self):
        self.hide()

    def __tr(self, str):
        return QString(_(str))