コード例 #1
0
ファイル: carla_settings.py プロジェクト: denisfitz57/Carla
    @pyqtSlot(int)
    def slot_pluginPathRowChanged(self, row):
        check = bool(row >= 0)
        self.ui.b_paths_remove.setEnabled(check)
        self.ui.b_paths_change.setEnabled(check)

    # --------------------------------------------------------------------------------------------------------

    def done(self, r):
        QDialog.done(self, r)
        self.close()


# ------------------------------------------------------------------------------------------------------------
# Main

if __name__ == '__main__':
    from carla_app import CarlaApplication
    from carla_host import initHost, loadHostSettings

    app = CarlaApplication()
    host = initHost("Settings", None, False, False, False)
    loadHostSettings(host)

    gui = CarlaSettingsW(None, host, True, True, True)
    gui.show()

    app.exit_exec()

# ------------------------------------------------------------------------------------------------------------
コード例 #2
0
    def slot_pluginPathRowChanged(self, row):
        check = bool(row >= 0)
        self.ui.b_paths_remove.setEnabled(check)
        self.ui.b_paths_change.setEnabled(check)

    # --------------------------------------------------------------------------------------------------------

    def done(self, r):
        QDialog.done(self, r)
        self.close()

# ------------------------------------------------------------------------------------------------------------
# Main

if __name__ == '__main__':
    from carla_app import CarlaApplication
    from carla_host import initHost, loadHostSettings

    initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None)

    app  = CarlaApplication("Carla2-Settings", libPrefix)
    host = initHost("Carla2-Settings", libPrefix, False, False, False)
    loadHostSettings(host)

    gui = CarlaSettingsW(None, host, True, True)
    gui.show()

    app.exit_exec()

# ------------------------------------------------------------------------------------------------------------
コード例 #3
0
ファイル: carla_settings.py プロジェクト: net147/Carla
    def slot_pluginPathRowChanged(self, row):
        check = bool(row >= 0)
        self.ui.b_paths_remove.setEnabled(check)
        self.ui.b_paths_change.setEnabled(check)

    # --------------------------------------------------------------------------------------------------------

    def done(self, r):
        QDialog.done(self, r)
        self.close()

# ------------------------------------------------------------------------------------------------------------
# Main

if __name__ == '__main__':
    from carla_app import CarlaApplication
    from carla_host import initHost, loadHostSettings

    initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None)

    app  = CarlaApplication("Carla2-Settings", libPrefix)
    host = initHost("Carla2-Settings", libPrefix, False, False, False)
    loadHostSettings(host)

    gui = CarlaSettingsW(None, host, True, True)
    gui.show()

    app.exit_exec()

# ------------------------------------------------------------------------------------------------------------
コード例 #4
0
ファイル: carla_settings.py プロジェクト: denisfitz57/Carla
    @pyqtSlot(int)
    def slot_pluginPathRowChanged(self, row):
        check = bool(row >= 0)
        self.ui.b_paths_remove.setEnabled(check)
        self.ui.b_paths_change.setEnabled(check)

    # --------------------------------------------------------------------------------------------------------

    def done(self, r):
        QDialog.done(self, r)
        self.close()

# ------------------------------------------------------------------------------------------------------------
# Main

if __name__ == '__main__':
    from carla_app import CarlaApplication
    from carla_host import initHost, loadHostSettings

    app  = CarlaApplication()
    host = initHost("Settings", None, False, False, False)
    loadHostSettings(host)

    gui = CarlaSettingsW(None, host, True, True, True)
    gui.show()

    app.exit_exec()

# ------------------------------------------------------------------------------------------------------------