当前位置: 首页>>代码示例>>Python>>正文


Python QCoreApplication.setOrganizationDomain方法代码示例

本文整理汇总了Python中PySide.QtCore.QCoreApplication.setOrganizationDomain方法的典型用法代码示例。如果您正苦于以下问题:Python QCoreApplication.setOrganizationDomain方法的具体用法?Python QCoreApplication.setOrganizationDomain怎么用?Python QCoreApplication.setOrganizationDomain使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PySide.QtCore.QCoreApplication的用法示例。


在下文中一共展示了QCoreApplication.setOrganizationDomain方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: onLoad

# 需要导入模块: from PySide.QtCore import QCoreApplication [as 别名]
# 或者: from PySide.QtCore.QCoreApplication import setOrganizationDomain [as 别名]
	def onLoad( self ):
		QLocale.setDefault(QLocale(QLocale.C))
		locale.setlocale(locale.LC_ALL, 'C')

		QCoreApplication.setOrganizationName("CloudTeam")
		QCoreApplication.setOrganizationDomain("cloudteam.pro")
		QCoreApplication.setApplicationName("juma-moai-editor")

		self.qtApp = QApplication( sys.argv )
		self.qtSetting = QSettings()
		
		self.setupMainWindow()		

		self.initialized = True
		self.running     = False

		return True
开发者ID:cloudteampro,项目名称:juma-editor,代码行数:19,代码来源:QtSupport.py

示例2: QCoreApplication

# 需要导入模块: from PySide.QtCore import QCoreApplication [as 别名]
# 或者: from PySide.QtCore.QCoreApplication import setOrganizationDomain [as 别名]
# Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.

# Import python core libraries
import sys
import os
import types

import argparse
import json

from PySide.QtCore import QCoreApplication, QUrl

import qt4reactor

QCoreApplication.setOrganizationName("Kitware")
QCoreApplication.setOrganizationDomain("kitware.com")

app = QCoreApplication(sys.argv)
qt4reactor.install()

# Import annotations
from autobahn.wamp import exportRpc

# Import paraview modules
from paraview import simple, paraviewweb_wamp, paraviewweb_protocols

# Currently ParaView does not load these modules
from vtkCommonCorePython import *
from vtkRenderingCorePython import *

# Import visgui
开发者ID:Kitware,项目名称:vivia,代码行数:33,代码来源:ParaViewServer.py

示例3: init_settings

# 需要导入模块: from PySide.QtCore import QCoreApplication [as 别名]
# 或者: from PySide.QtCore.QCoreApplication import setOrganizationDomain [as 别名]
 def init_settings(self):
     QCoreApplication.setOrganizationName("erdinc.me")
     QCoreApplication.setOrganizationDomain("erdinc.me")
     QCoreApplication.setApplicationName("IMAPLinkParser")
     self.settings = QSettings()
开发者ID:erdinc-me,项目名称:IMAPLinkParser,代码行数:7,代码来源:gui_add_preset_dialog.py

示例4: show_and_raise

# 需要导入模块: from PySide.QtCore import QCoreApplication [as 别名]
# 或者: from PySide.QtCore.QCoreApplication import setOrganizationDomain [as 别名]
                    val_str = self.convert_val_to_str(setting.value)
                    setting_field.setText(setting.filter_name(val_str))
                if setting.type == 'check':
                    setting_field.setChecked(setting.value)
                if setting.type == 'list':
                    val_str = self.convert_val_to_str(setting.value)
                    index = setting_field.findText(val_str)
                    if index != -1:
                        setting_field.setCurrentIndex(index)
                if setting.type == 'range':
                    setting_field.setValue(setting.value)
        self.ex_button.setEnabled(self.required_settings_filled())

    def show_and_raise(self):
        self.show()
        self.raise_()


if __name__ == '__main__':
    app = QApplication(sys.argv)

    QCoreApplication.setApplicationName("Web2Executable")
    QCoreApplication.setApplicationVersion(__gui_version__)
    QCoreApplication.setOrganizationName("SimplyPixelated")
    QCoreApplication.setOrganizationDomain("simplypixelated.com")

    frame = MainWindow(1000, 500)
    frame.show_and_raise()

    sys.exit(app.exec_())
开发者ID:ebenshap,项目名称:Web2Executable,代码行数:32,代码来源:main.py

示例5: main

# 需要导入模块: from PySide.QtCore import QCoreApplication [as 别名]
# 或者: from PySide.QtCore.QCoreApplication import setOrganizationDomain [as 别名]
import sys

from PySide import QtGui
from PySide.QtCore import QSettings, QLocale, QCoreApplication

import inselect

from inselect.lib.utils import debug_print
from inselect.gui.main_window import MainWindow

# Values used by several important parts of Qt's machinery including the GUI
# and QSettings.
QCoreApplication.setOrganizationName('NHM')
QCoreApplication.setApplicationName('Inselect')
QCoreApplication.setApplicationVersion(inselect.__version__)
QCoreApplication.setOrganizationDomain('nhm.ac.uk')


def main(args):
    parser = argparse.ArgumentParser(description='Runs the inselect user-interface')
    parser.add_argument("file", help='The inselect document to open', nargs='?')
    parser.add_argument('-d', '--debug', action='store_true',
                        help='Show debug messages')
    parser.add_argument('-l', '--locale', action='store',
                        help='Use LOCALE; intended for testing purposes only')
    parser.add_argument('-v', '--version', action='version',
                        version='%(prog)s ' + inselect.__version__)
    parsed = parser.parse_args(args[1:])

    # TODO LH A command-line switch to clear all QSettings
开发者ID:edwbaker,项目名称:inselect,代码行数:32,代码来源:app.py

示例6: QApplication

# 需要导入模块: from PySide.QtCore import QCoreApplication [as 别名]
# 或者: from PySide.QtCore.QCoreApplication import setOrganizationDomain [as 别名]
            self.nam,
            url=self.settings_manager.sync_manager.server_address,
            username=self.settings_manager.sync_manager.username,
            password=self.settings_manager.sync_manager.password,
            certificate=self.settings_manager.sync_manager.certificate)
        self.settings_window.finished.connect(self.sync_clicked)

if __name__ == "__main__":
    parser = argparse.ArgumentParser(description="Generate domain passwords from your masterpassword.")
    parser.add_argument('-u', '--update-sync-settings',
                        action='store_const', const=True,
                        help="Ask for server settings before synchronization.")
    parser.add_argument('--master-password', help="Prefill the masterpassword field.")
    parser.add_argument('-d', '--domain', help="Prefill the domain field.")
    args = parser.parse_args()
    app = QApplication([])
    QCoreApplication.setOrganizationName("c't")
    QCoreApplication.setOrganizationDomain("ct.de")
    QCoreApplication.setApplicationName("ctSESAM-pyside")
    window = MainWindow()
    if type(args.master_password) is str and args.master_password:
        window.set_masterpassword(args.master_password)
        window.masterpassword_changed()
        window.masterpassword_entered()
    if type(args.domain) is str and args.domain:
        window.set_domain(args.domain)
        window.domain_changed()
    if args.update_sync_settings:
        window.show_sync_settings()
    app.exec_()
开发者ID:pinae,项目名称:ctSESAM-pyside,代码行数:32,代码来源:ctSESAM.py

示例7: ConsoleStream

# 需要导入模块: from PySide.QtCore import QCoreApplication [as 别名]
# 或者: from PySide.QtCore.QCoreApplication import setOrganizationDomain [as 别名]
        self.livereload.lua = self.moaiWidget.lua
        self.livereload.watchDirectory(self.workingDir)


class ConsoleStream(QtCore.QObject):
    message = QtCore.Signal(str)
    def __init__(self, parent=None):
        super(ConsoleStream, self).__init__(parent)

    def write(self, message):
        self.message.emit(str(message))

if __name__ == '__main__':
    QCoreApplication.setOrganizationName("DigitalClick")
    QCoreApplication.setOrganizationDomain("cloudteam.pro")
    QCoreApplication.setApplicationName("Moai Editor")

    app = QApplication(sys.argv)

    script = None
    if len(sys.argv) > 1:
        script = sys.argv[1]
    mainWindow = MainWindow(script = script)

    # all output except traceback and user prints is DIM
    print(Style.DIM)
    mainWindow.show()
    app.exec_()
    print(Style.RESET_ALL)
开发者ID:Vavius,项目名称:moai-ide,代码行数:31,代码来源:mainwindow.py


注:本文中的PySide.QtCore.QCoreApplication.setOrganizationDomain方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。