Re: [Twisted-Python] running code on its own and importing, howto install a different reactor?

2016-07-29 Thread meejah
steven meier writes: > if __name__ == '__main__': > import qt5reactor > qt5reactor.install() > from twisted.internet import reactor > reactor.callWhenRunning(print_it, reactor) > reactor.run() For "client-style" things (I guess I just mean "something

[Twisted-Python] running code on its own and importing, howto install a different reactor?

2016-07-29 Thread steven meier
hi, i ran into this issue, i can run the code on its own "python working_code.py", but i cant import it...how do you fit the reactor in this scenario? python main_code.py Unhandled error in Deferred: Traceback (most recent call last): File