Logo Search packages:      
Sourcecode: qtorrent version File versions  Download package

__init__.py

__all__ = ['run_gui']

def run_gui(qtorrent):
      from mainwin import USE_KDE, MainWin
      import sys
      if USE_KDE:
            from kdecore import KApplication
            app = KApplication([sys.argv[0]], 'QTorrent')
      else:
            from qt import QApplication
            app = QApplication([sys.argv[0]])
      
      win = MainWin(qtorrent)
      app.setMainWidget(win)
      
      def run():
            win.show()
            app.exec_loop()
      return win, run


Generated by  Doxygen 1.6.0   Back to index