Beispiel #1
0
    def __init__(self, component_data, parent):
        KCModule.__init__(self, component_data, parent)

        KGlobal.locale().insertCatalog(about.catalog)

        if not dbus.get_default_main_loop():
            from dbus.mainloop.qt import DBusQtMainLoop
            DBusQtMainLoop(set_as_default=True)

        MainWidget(self, embed=True)
 def __init__(self, parent=None):
     QtGui.QMainWindow.__init__(self, parent)
     widget = MainWidget(self)
     self.resize(widget.size())
     self.setCentralWidget(widget)
 def __init__(self, parent=None):
     QtWidgets.QMainWindow.__init__(self, parent)
     widget = MainWidget(self)
     self.resize(widget.size())
     self.setCentralWidget(widget)
     self.qtrans=QtCore.QTranslator()
        #Set Commandline arguments
        KCmdLineArgs.init(sys.argv, aboutData)
        #Create a Kapplication instance
        app = KApplication()
        window = FirewallManager()
        window.show()

        app.exec_()
    else:

        import gettext
        
        __trans = gettext.translation('firewall-manager', fallback=True)
        i18n = __trans.ugettext

        from firewallmanager.main import MainWidget
        from pds.quniqueapp import QUniqueApplication

        app = QUniqueApplication(sys.argv, catalog="firewall-manager")

        mainWindow = MainWidget(None)
        mainWindow.show()
        mainWindow.resize(640, 480)
        mainWindow.setWindowTitle(i18n("Firewall Manager"))
        mainWindow.setWindowIcon(KIcon("security-high"))
        app.lastWindowClosed.connect(app.quit)
        app.exec_()

def CreatePlugin(widget_parent, parent, component_data):
    return Module(component_data, parent)
Beispiel #5
0
 def __init__(self, parent=None):
     QtGui.QMainWindow.__init__(self, parent)
     widget = MainWidget(self)
     self.resize(widget.size())
     self.setCentralWidget(widget)
Beispiel #6
0
 def __init__(self, parent=None):
     QtGui.QMainWindow.__init__(self, parent)
     widget = MainWidget(self)
     self.resize(widget.size())
     self.setCentralWidget(widget)
     self.qtrans = QtCore.QTranslator()
Beispiel #7
0
        KCmdLineArgs.init(sys.argv, aboutData)
        #Create a Kapplication instance
        app = KApplication()
        window = FirewallManager()
        window.show()

        app.exec_()
    else:

        import gettext

        __trans = gettext.translation('firewall-manager', fallback=True)
        i18n = __trans.ugettext

        from firewallmanager.main import MainWidget
        from pds.quniqueapp import QUniqueApplication

        app = QUniqueApplication(sys.argv, catalog="firewall-manager")

        mainWindow = MainWidget(None)
        mainWindow.show()
        mainWindow.resize(640, 480)
        mainWindow.setWindowTitle(i18n("Firewall Manager"))
        mainWindow.setWindowIcon(KIcon("security-high"))
        app.connect(app, SIGNAL('lastWindowClosed()'), app.quit)
        app.exec_()


def CreatePlugin(widget_parent, parent, component_data):
    return Module(component_data, parent)