~landscape/zope3/newer-from-ztk

« back to all changes in this revision

Viewing changes to src/twisted/words/scripts/im.py

  • Committer: Thomas Hervé
  • Date: 2009-07-08 13:52:04 UTC
  • Revision ID: thomas@canonical.com-20090708135204-df5eesrthifpylf8
Remove twisted copy

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
2
 
# See LICENSE for details.
3
 
 
4
 
import os
5
 
 
6
 
def run():
7
 
    if os.name == 'java':
8
 
        from twisted.internet import javareactor
9
 
        javareactor.install()
10
 
        from twisted.words.im.jyaccount import AccountManagementGUI
11
 
        AccountManagementGUI()
12
 
    else:
13
 
        from twisted.internet import gtkreactor
14
 
        gtkreactor.install()
15
 
        from twisted.words.im.gtkaccount import AccountManager
16
 
        AccountManager()
17
 
 
18
 
    from twisted.internet import reactor
19
 
    reactor.run()
20
 
 
21
 
if __name__ == '__main__':
22
 
    run()