Пример #1
0
    def __init__(self):
        assert self._instance == None
        Config._instance = self
        QCoreApplication.setOrganizationName("nicolas.carrier")
        QCoreApplication.setApplicationVersion(version)
        QCoreApplication.setApplicationName("gem")

        self.__settings = QSettings()
Пример #2
0
    def __init__(self):
        assert self._instance == None
        Config._instance = self
        QCoreApplication.setOrganizationName("nicolas.carrier")
        QCoreApplication.setApplicationVersion(version)
        QCoreApplication.setApplicationName("gem")

        self.__settings = QSettings()
Пример #3
0
	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
Пример #4
0
    def __init__(self, parent=None):
        QCoreApplication.setOrganizationName("Hamster Inc.")
        QCoreApplication.setApplicationName("Hamster")
        QtGui.QMainWindow.__init__(self, parent)
        self.ui = Ui_MainWindow()
        self.ui.setupUi(self)
        self.index_thread = False
        self._shutdown_requested = False
        self.downloader = DownloadManager()
        self.downloader.dl_finished.connect(self.update_cover)
        header = ['Movie']

        #self.db = MovieDB("movies")
        tv = self.ui.tableView
        tv.setShowGrid(False)
        #model = MyTableModel(self.db, header, tv)
        #titles = self.db.get_movie_titles()
        self.index = get_user_index()
        self.db = get_user_db()
        results = self.index.list_all()
        self.model = ResultViewModel(results, header, tv)
        #model = QtGui.QStandardItemModel()
        #model.insertRow(0, [QtGui.QStandardItem("hallo")])
        #model.insertRow(0, [QtGui.QStandardItem("sadf")])
        #model.insertRow(0, [QtGui.QStandardItem("pfui")])
        #model.insertRow(0, [QtGui.QStandardItem("warum?")])
        #model.insertRow(0, [QtGui.QStandardItem("haeff")])
        tv.setModel(self.model)
        selectionModel = tv.selectionModel()
        # hide vertical header
        vh = tv.verticalHeader()
        vh.setVisible(False)

        # set horizontal header properties
        hh = tv.horizontalHeader()
        hh.setStretchLastSection(True)

        selectionModel.selectionChanged.connect(self.setCurrentSelection)
        self.ui.search_bar.textChanged.connect(self.update_model)
        self.ui.action_sync_now.triggered.connect(self.sync)
        self.settings = QSettings()
        global MOVIE_DIR
        MOVIE_DIR = self.settings.value("movie_dir", MOVIE_DIR)
        self.settings.setValue("movie_dir", MOVIE_DIR)
Пример #5
0
    def __init__(self, parent=None):
        QCoreApplication.setOrganizationName("Hamster Inc.")
        QCoreApplication.setApplicationName("Hamster")
        QtGui.QMainWindow.__init__(self, parent)
        self.ui = Ui_MainWindow()
        self.ui.setupUi(self)
        self.index_thread = False
        self._shutdown_requested = False
        self.downloader = DownloadManager()
        self.downloader.dl_finished.connect(self.update_cover)
        header = ['Movie']

        #self.db = MovieDB("movies")
        tv = self.ui.tableView
        tv.setShowGrid(False)
        #model = MyTableModel(self.db, header, tv)
        #titles = self.db.get_movie_titles()
        self.index = get_user_index()
        self.db = get_user_db()
        results = self.index.list_all()
        self.model = ResultViewModel(results, header, tv)
        #model = QtGui.QStandardItemModel()
        #model.insertRow(0, [QtGui.QStandardItem("hallo")])
        #model.insertRow(0, [QtGui.QStandardItem("sadf")])
        #model.insertRow(0, [QtGui.QStandardItem("pfui")])
        #model.insertRow(0, [QtGui.QStandardItem("warum?")])
        #model.insertRow(0, [QtGui.QStandardItem("haeff")])
        tv.setModel(self.model)
        selectionModel = tv.selectionModel()
        # hide vertical header
        vh = tv.verticalHeader()
        vh.setVisible(False)

        # set horizontal header properties
        hh = tv.horizontalHeader()
        hh.setStretchLastSection(True)

        selectionModel.selectionChanged.connect(self.setCurrentSelection)
        self.ui.search_bar.textChanged.connect(self.update_model)
        self.ui.action_sync_now.triggered.connect(self.sync)
        self.settings = QSettings()
        global MOVIE_DIR
        MOVIE_DIR = self.settings.value("movie_dir", MOVIE_DIR)
        self.settings.setValue("movie_dir", MOVIE_DIR)
Пример #6
0
                    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_())
Пример #7
0
# KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
# 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 *
 def init_settings(self):
     QCoreApplication.setOrganizationName("erdinc.me")
     QCoreApplication.setOrganizationDomain("erdinc.me")
     QCoreApplication.setApplicationName("IMAPLinkParser")
     self.settings = QSettings()
Пример #9
0
import argparse
import sys

from PySide.QtGui import QApplication
from PySide.QtCore import QCoreApplication

import syrup
from syrup.main_window import MainWindow

# The QSettings default constructor uses the application's organizationName
# and applicationName properties.
QCoreApplication.setOrganizationName('NHM')
QCoreApplication.setApplicationName('syrup')

# No obvious benefit to also setting these but neither is there any obvious harm
QCoreApplication.setApplicationVersion(syrup.__version__)
QCoreApplication.setOrganizationDomain('nhm.ac.uk')


def main(args):
    parser = argparse.ArgumentParser(description=syrup.__doc__)
    parser.add_argument('-v',
                        '--version',
                        action='version',
                        version='%(prog)s ' + syrup.__version__)
    parsed = parser.parse_args(args[1:])

    app = QApplication(args)
    window = MainWindow(app)
    window.show_from_geometry_settings()
    sys.exit(app.exec_())
Пример #10
0
                    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_())
Пример #11
0
import argparse
import locale
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:])
Пример #12
0
            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_()
Пример #13
0
# OSI-approved BSD 3-Clause License. See top-level LICENSE file or
# https://github.com/Kitware/vivia/blob/master/LICENSE for details.

# 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 *
Пример #14
0
        self.environmentDock.startSession(False)

        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)
Пример #15
0
import sys

from PySide.QtGui import QApplication
from PySide.QtCore import QCoreApplication

from time_tracker import constants
from time_tracker.ui import MainForm
from time_tracker.db import create_db
from time_tracker.service import ProjectService, SessionService, PauseService

if __name__ == '__main__':
	locale.setlocale(locale.LC_ALL, "english_us") # russian_russia 

	create_db(constants.DATABASE_FILE)

	QCoreApplication.setOrganizationName("Kartavykh Soft")
	QCoreApplication.setApplicationName("Time Tracker")

	app = QApplication(sys.argv)

	pause_service = PauseService()
	project_service = ProjectService()
	session_service = SessionService()

	session_service.timer_updated.connect(project_service.timer_update_slot)
	session_service.session_stopped.connect(project_service.session_stop_slot)
	session_service.session_paused.connect(pause_service.session_pause_slot)
	session_service.session_resumed.connect(pause_service.session_resume_slot)
	session_service.session_stopped.connect(pause_service.session_stop_slot)

	main_form = MainForm(project_service, session_service)
Пример #16
0
from pySUMOQt.Widget.Widget import RWWidget, PySUMOWidget

from pySUMOQt.Settings import LayoutManager, PySumoSettings
from pySUMOQt.Dialog import NewOntologyDialog, OpenRemoteOntologyDialog, OptionDialog,\
    OntologyPropertyDialog
from pySUMOQt.Widget.GraphWidget import GraphWidget
from pysumo.syntaxcontroller import Ontology
from pysumo import logger
from pysumo.logger.infolog import InfoLog
from pysumo.updater import update
from _io import BytesIO
from builtins import dict

QCoreApplication.setApplicationName("pySUMO")
QCoreApplication.setApplicationVersion("1.0")
QCoreApplication.setOrganizationName("PSE Team")


class MainWindow(Ui_mainwindow, QMainWindow):
    """ This class is the entry point of the application. It creates the main
    window, initiates all the subsystems and then displays the GUI.  It
    consists of: a main frame with a menu bar, toolbar, status bar and numerous
    widgets. It inherits from QMainWindow

    Variables:

    - widgets: A list of the main window's currently active widgets.

    """

    ontologyAdded = Signal(Ontology)