Exemple #1
0
def attachMainWidget(win):
    KGlobal.iconLoader().addAppDir(mod_app)
    icons.load_icons()
    # Import module after setting DBus mainloop
    # This module makes async. calls on startup
    import browser
    win.mainwidget = browser.Widget(win)
    toplayout = QVBoxLayout(win, 0, KDialog.spacingHint())
    toplayout.addWidget(win.mainwidget)
    win.aboutus = KAboutApplication(win)
Exemple #2
0
def main():
    global kapp
    
    about_data = AboutData()
    KCmdLineArgs.init(sys.argv,about_data)

    if not KUniqueApplication.start():
        print i18n("Network KGA is already running!")
        return

    kapp = KUniqueApplication(True, True, True)
    myapp = MainApplication()
    kapp.setMainWidget(myapp)
    icons.load_icons()
    sys.exit(myapp.exec_loop())
Exemple #3
0
def create_net_kga(parent,name):
    global kapp
    
    kapp = KApplication.kApplication()
    icons.load_icons()
    return MainApplication(parent, name)