def main(): QCoreApplication.setOrganizationName("Oleg Evseev") QCoreApplication.setOrganizationDomain("x3n.me") QCoreApplication.setApplicationName("BCI") app = App(sys.argv) return app.exec_()
# -*- coding: utf-8 -*- import sys from PySide2.QtWidgets import QApplication from PySide2.QtCore import QCoreApplication from notepad import Notepad if __name__ == '__main__': QCoreApplication.setOrganizationName('AdanMercado') QCoreApplication.setOrganizationDomain('https://github.com/adanmercado') QCoreApplication.setApplicationName('Notepad') QCoreApplication.setApplicationVersion('1.0.0') app = QApplication(sys.argv) notepad = Notepad() notepad.showMaximized() sys.exit(app.exec_())
import os import sys import struct if os.name == 'nt': import PySide2 dirname = os.path.dirname(PySide2.__file__) plugin_path = os.path.join(dirname, 'plugins', 'platforms') os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = plugin_path from PySide2.QtCore import QCoreApplication from PySide2.QtWidgets import QApplication QCoreApplication.setOrganizationName("UFAL") QCoreApplication.setOrganizationDomain("ufal.ms.mff.cuni.cz") QCoreApplication.setApplicationName("Alignmeet") if os.name == 'nt': arch = struct.calcsize('P') * 8 if arch == 64 and os.path.exists("""C:\Program Files\VideoLAN\VLC"""): os.environ[ 'PYTHON_VLC_MODULE_PATH'] = """C:\Program Files\VideoLAN\VLC""" elif arch == 32 and os.path.exists( """C:\Program Files (x86)\VideoLAN\VLC"""): os.environ[ 'PYTHON_VLC_MODULE_PATH'] = """C:\Program Files (x86)\VideoLAN\VLC""" else: os.environ['PYTHON_VLC_MODULE_PATH'] = """program/vlc-3.0.9.2"""
from PySide2.QtGui import QGuiApplication, QIcon, QFont from scihub_eva.globals.versions import * from scihub_eva.globals.preferences import * from scihub_eva.utils.preferences_utils import * from scihub_eva.utils.sys_utils import * from scihub_eva.utils.path_utils import * from scihub_eva.ui.scihub_eva import UISciHubEVA if __name__ == '__main__': app_path = os.path.abspath(os.path.dirname(sys.argv[0])) os.environ['QT_QUICK_CONTROLS_CONF'] = ( PREFERENCES_DIR / 'qtquickcontrols2.conf').resolve().as_posix() QCoreApplication.setOrganizationName(ORGANIZATION_NAME) QCoreApplication.setOrganizationDomain(ORGANIZATION_DOMAIN) QCoreApplication.setApplicationName(APPLICATION_NAME) QGuiApplication.setAttribute(Qt.AA_EnableHighDpiScaling) QGuiApplication.setAttribute(Qt.AA_UseHighDpiPixmaps) QGuiApplication.setAttribute(Qt.AA_ShareOpenGLContexts) app = QGuiApplication(sys.argv) lang = Preferences.get_or_default(SYSTEM_LANGUAGE_KEY, SYSTEM_LANGUAGE) lang_file_path = ( I18N_DIR / 'SciHubEVA_{lang}.qm'.format(lang=lang)).resolve().as_posix() translator = QTranslator() translator.load(lang_file_path) app.installTranslator(translator)
self.repaint() def reset(self) -> None: self.events = [] self.text = ' '.join([ choice(list(self.config['dictionary'])).lower() for _ in range(self.settings.value('wordsCount', 20)) ]) self.pointer = 0 def setupWindow(self) -> None: self.setWindowTitle('Typetific') self.setMinimumSize(1100, 620) self.setUnifiedTitleAndToolBarOnMac(True) self.setStyleSheet('background: {}; color: {};'.format( self.config['background_color'].name(), self.config['primary_color'].name())) if __name__ == '__main__': app = QApplication() window = TypingWindow() QCoreApplication.setApplicationName(window.windowTitle()) QCoreApplication.setOrganizationName('Breitburg Ilya') QCoreApplication.setOrganizationDomain('breitburg.com') window.show() app.exec_()
from PySide2.QtWidgets import QApplication except ImportError: import tkinter.messagebox as tkmb tkmb.showerror('Errore!', 'Non è possibile importare le librerie esterne necessarie per il funzionamento del ' 'programma.\nSi prega di installarle con il seguente comando:\npip install -r ' 'requirements.txt') exit() from src.windows.MainWindow import MainWindow # Set info QCoreApplication.setApplicationName('Risolutore approssimativo di equazioni') QCoreApplication.setApplicationVersion('1.0') QCoreApplication.setOrganizationName('maicol07') QCoreApplication.setOrganizationDomain('maicol07.it') app = QApplication(sys.argv) # Load style settings = QSettings('settings.ini', QSettings.IniFormat) theme = settings.value('appearance/style') if theme: app.setStyle(theme) font = settings.value('appearance/font') if font: app.setFont(font) window = MainWindow()
__appname__ = "Easy File Renamer" __module__ = "main" __author__ = "Jose Ivan Lopez Romo" __copyright__ = "Copyright 2018" __license__ = "MIT" __version__ = "1.0.0" __email__ = "*****@*****.**" if __name__ == "__main__": logging.basicConfig( handlers=[logging.FileHandler(LOG_FILE_PATH, encoding='utf-8')], level=logging.INFO, format="%(asctime)s -- %(levelname)s -- %(message)s") QCoreApplication.setApplicationName("EasyFileRenamer") QCoreApplication.setApplicationVersion("1.0") QCoreApplication.setOrganizationName("EasyFileRenamer") QCoreApplication.setOrganizationDomain("www.ivanlopezr.com") logging.info("--- APPLICATION STARTED ---") QApplication.setStyle("fusion") app = QApplication(sys.argv) form = GUI() form.show() sys.exit(app.exec_())
from PySide2.QtWidgets import QApplication, QMessageBox from PySide2.QtGui import QDesktopServices from PySide2.QtCore import QUrl, QCoreApplication from os import environ, pathsep import sys import gui from selenium import webdriver from selenium.common.exceptions import WebDriverException app = QApplication(sys.argv) QCoreApplication.setOrganizationName("muSync") QCoreApplication.setOrganizationDomain("musync.link") QCoreApplication.setApplicationName("muSync") QCoreApplication.setApplicationVersion("0.5.0") try: chrome_options = webdriver.ChromeOptions() chrome_options.add_argument("headless") chrometest = webdriver.Chrome(executable_path="chromedriver", options=chrome_options) chrometest.quit() except WebDriverException as e: if "executable needs to be in PATH" in e.msg: d = QMessageBox( QMessageBox.Critical, "Chromedriver not found", """Chromedriver was not found in the path. Please download Chromedriver from the following address and unzip it in any directory in the system PATH: