Exemplo n.º 1
0
def main():
	QApplication.setColorSpec(QApplication.ManyColor)
	app = QApplication(sys.argv)
	app.setOrganizationName("NJN Ltd.")
	app.setOrganizationDomain("e-nool.blogspot.com")
	app.setApplicationName("Nigandu English to Tamil Dictionary")
	app.setWindowIcon(QIcon(":/icons/njnlogo.png"))
	form = mainwin()
	form.show()
	app.exec_()
Exemplo n.º 2
0
def main(args):
    app = QApplication(args)
    app.setApplicationName(__APPNAME__)
    app.setApplicationVersion(__VERSION__)
    app.setOrganizationName(__ORG__)
    app.setOrganizationDomain(__ORGDOMAIN__)
    mainwindow = MaeBird()
    mainwindow.show()
    app.exec_()
    del mainwindow
Exemplo n.º 3
0
def main():
    'Main Program Entry Point'
    QResource.registerResource('res/icons.rcc')
    
    app = QApplication(sys.argv)
    app.setOrganizationName(__ORG_NAME)
    app.setOrganizationDomain(__ORG_DOMAIN)
    app.setApplicationName(__APP_NAME)
    app.setApplicationVersion(__APP_VERSION)
    
    w = TransferPanel()
    w.show()
    
    sys.exit(app.exec_())
Exemplo n.º 4
0
def main():
    #Start the Flask server in a new thread.
    startServerThread()

    #Now start the main UI.
    app = QApplication(sys.argv)
    app.setOrganizationName("Guru")
    app.setOrganizationDomain("rwu.edu")
    app.setApplicationName("Guru")

    main_window = MainWindow(isWelcome=True)
    main_window.show()
    main_window.activateWindow() #This does not work for some reason.
    main_window.raise_()         #But this does.
    app.exec_()

    cleanup()
Exemplo n.º 5
0
def main():
  app = QApplication(sys.argv)
  try:
    auto_update()
  except:
    pass

  app.setOrganizationName("Deca Technologies")
  app.setOrganizationDomain("decatechnologies.com")
  app.setApplicationName("Pyrite")

  # create app environment
  window = MainWindow()
  window.show()

  # run main application loop
  sys.exit(app.exec_())
def main():
    # Fix for PySide on OSX Mavericks
    import sys
    if sys.platform.startswith("darwin"):
        from PySide.QtGui import QFont
        QFont.insertSubstitution(".Lucida Grande UI", "Lucida Grande")

    app = QApplication(sys.argv)
    app.setObjectName(APPNAME)
    app.setApplicationName(APPNAME)
    app.setOrganizationName(ORGNAME)
    app.setOrganizationDomain(ORGDOMAIN)

    mainWindow = RegistrationShop(sys.argv)
    mainWindow.raise_()
    mainWindow.show()
    mainWindow.initialize()
    sys.exit(app.exec_())
Exemplo n.º 7
0
def main():
    """
    """
    from MainWindow import MainWindow

    translator = QTranslator() #Build the translator
    translator.load(":/locales/df_%s" % QLocale.system().name())
    qttranslator = QTranslator()#A translator for Qt standard strings
    qttranslator.load("qt_%s" % (QLocale.system().name()))
    App = QApplication(sys.argv) #Creating the app
    App.setOrganizationName(ORGNAME) #Setting organization and application's
    App.setApplicationName(NAME)#name. It's only useful for QSettings
    App.setApplicationVersion(VERSION)
    App.setOrganizationDomain(URL)
    App.installTranslator(translator)#Install translators into the application.
    App.installTranslator(qttranslator)
    mw = MainWindow(App) #Now it's time to instantiate the main window
    mw.show() #And show it
    sys.exit(App.exec_()) #When the app finishes, exit.
Exemplo n.º 8
0
def main():
    """
    """
    from MainWindow import MainWindow

    translator = QTranslator()  #Build the translator
    translator.load(":/locales/df_%s" % QLocale.system().name())
    qttranslator = QTranslator()  #A translator for Qt standard strings
    qttranslator.load("qt_%s" % (QLocale.system().name()))
    App = QApplication(sys.argv)  #Creating the app
    App.setOrganizationName(ORGNAME)  #Setting organization and application's
    App.setApplicationName(NAME)  #name. It's only useful for QSettings
    App.setApplicationVersion(VERSION)
    App.setOrganizationDomain(URL)
    App.installTranslator(
        translator)  #Install translators into the application.
    App.installTranslator(qttranslator)
    mw = MainWindow(App)  #Now it's time to instantiate the main window
    mw.show()  #And show it
    sys.exit(App.exec_())  #When the app finishes, exit.
Exemplo n.º 9
0
if __name__ == '__main__':
    import sys
    import Qrc  # noqa
    import HelpForm

    class FakeState:
        def __init__(self):
            self.window = None
            self.helpForm = None
            self.stdFontFamily = "Times New Roman"
            self.stdFontSize = 13

        def help(self, page=None):
            if self.helpForm is None:
                self.helpForm = HelpForm.Form("xix_help.html", self.window)
            if page is not None:
                self.helpForm.changePage(page)
            self.helpForm.show()
            self.helpForm.raise_()
            self.helpForm.activateWindow()

    app = QApplication([])
    app.setOrganizationName("Qtrac Ltd.")
    app.setOrganizationDomain("qtrac.eu")
    app.setApplicationName("XindeX-Test")
    app.setApplicationVersion("1.0.0")
    state = FakeState()
    form = Form(state)
    form.show()
    app.exec_()
Exemplo n.º 10
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
#do not generate pyc file
sys.dont_write_bytecode = True

import splash_rc

from PySide.QtCore import Qt
from PySide.QtGui import QApplication, QSplashScreen, QPixmap

#create application and set properties
app = QApplication(sys.argv)
app.setOrganizationName('Chengdu University')
app.setOrganizationDomain('http://www.cdu.edu.cn')
app.setApplicationName('Krait')

#support windows 7, 10 taskbar icon
import ctypes
if os.name == 'nt':
    myappid = 'CDU.Krait.ssr.1.0'
    ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)

splash_img = QPixmap(":/icons/splash.png")
splash = QSplashScreen(splash_img)
splash.setWindowFlags(Qt.WindowStaysOnTopHint | Qt.SplashScreen
                      | Qt.FramelessWindowHint)
splash.setStyleSheet('''
	font-family:"Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
Exemplo n.º 11
0
#!/usr/bin/env python

if __name__ == "__main__":
    """Python entry point."""

    from sys import argv
    from PySide.QtGui import QApplication
    from caerus.controller import Controller

    qt = QApplication(argv)

    qt.setApplicationName("Caerus")
    qt.setApplicationVersion("1.0")

    qt.setOrganizationName("MMT Temporary Services")
    qt.setOrganizationDomain("http://www.mmt-temp-srvs.com")

    c = Controller()
    qt.exec_()
Exemplo n.º 12
0
    Pipes all exceptions to the logger, then lets the exceptions continue on
    their normal way.

    @param value: An exception
    @type value: Exception

    @param tback: The Traceback
    @type tback: Traceback
    """
    # log the exception
    tbackString = traceback.format_list(traceback.extract_tb(tback))
    logging.exception("\nAn exception occurred: %s\nTraceback: %s" % (value, tbackString))

    # then call the default handler
    sys.__excepthook__(type, value, tback)


if __name__ == "__main__":
    sys.excepthook = my_excepthook  # catch all exceptions for the logger

    app = QApplication(sys.argv)
    # set some info, just to be thorough (this stuff is mainly set in BioParkinController or the Ui_MainWindow itself).
    app.setOrganizationName("Zuse Institute Berlin")
    app.setOrganizationDomain("zib.de")
    app.setApplicationName("BioPARKIN")

    parkin = BioParkinController(sys.argv)
    parkin.show()

    app.exec_()
Exemplo n.º 13
0
import sys

from PySide.QtGui import QApplication
from PySide.QtGui import QIcon

from PySide.QtCore import QTranslator
from PySide.QtCore import QLocale
from PySide.QtCore import QLibraryInfo
from PySide.QtCore import Qt

from qrmainwindow import QtReduceMainWindow

app = QApplication(sys.argv)

app.setOrganizationName("The Reduce Project")
app.setOrganizationDomain("reduce-algebra.sourceforge.net")
app.setApplicationName("QReduce")

qtTranslator = QTranslator(app)
qtTranslator.load("qt_" + QLocale.system().name(),
                  QLibraryInfo.location(QLibraryInfo.TranslationsPath))
app.installTranslator(qtTranslator)

qreduceTranslator = QTranslator(app)
qreduceTranslator.load(sys.path[0] + "/" + "qreducetr." +
                       str(locale.getdefaultlocale()[0]))
#app.installTranslator(qreduceTranslator)

# app.setStyleSheet("QStatusBar::item { border: 0px solid black }");

app.setWindowIcon(QIcon(sys.path[0] + "/" + "Bumblebee.png"))
Exemplo n.º 14
0
        return os.system('dot_clean %s' % path)
    
    def siguienteClicked(self):
        if self.lista.currentItem():
            selected = self.lista.currentItem().text()
            path = os.path.join('/Volumes', selected)
            if self.dot_clean(path) == 0:
                title = 'Proceso exitoso'
                msg = u'Se limpió la memoria con éxito'
            else:
                title = 'Proceso fallido'
                msg = u'Ocurrió un error inesperado. Verifique que la memoria esté montada.'
        else:
            title = 'Proceso fallido'
            msg = u'No se encuentra ninguna memoria, por favor introduzca una y vuelva a iniciar la apliación'
        QMessageBox.information(self, title, msg)
        self.close()

if __name__ == '__main__':
    app = QApplication(sys.argv)
    app.setOrganizationName("ehmSoftware")
    app.setOrganizationDomain("ehmsoft.com")
    app.setApplicationName("Dot Clean")
    app.setWindowIcon(QIcon(":/images/icono.png"))
    ventana = GUIdot_cleanMac()
    ventana.show()
    ventana.raise_()
    sys.exit(app.exec_())


Exemplo n.º 15
0
Arquivo: gui.py Projeto: r3/r3tagger
        selectedDir = QFileDialog.getExistingDirectory(parent=self, caption="Add Album")

        self.addPath(selectedDir)

    def editRecognize(self):
        pass

    def editReorganize(self):
        pass

    def editSettings(self):
        pass

    def helpDocs(self):
        pass

    def helpAbout(self):
        pass


if __name__ == "__main__":
    app = QApplication(sys.argv)
    app.setOrganizationName("r3")
    app.setOrganizationDomain("github.com/r3")
    app.setApplicationName("r3tagger")

    form = MainWindow()
    form.show()

    sys.exit(app.exec_())
Exemplo n.º 16
0
        dateString = self.exerciseDateEdit.date().toString('yyyy-MM-dd')
        self.db.logExercise(dateString, exData[0], exData[1], exData[2], exData[3], exData[4])
        # reload model
        self.changeExerciseDate(self.exerciseDateEdit.date())
        
    def logExerciseClick(self):
        """
        Use the button to log the currently selected exercise to the currently
        selected day
        """
        if len(self.exerciseList.selectedIndexes()) != 0:
            QModelIndex = self.exerciseList.selectedIndexes()[0]
            self.logExercise(QModelIndex)
        
    def changeExerciseDate(self, date=QDate.currentDate()):
        """
        Actions to conduct when date is changed, e.g. check if date exists in
        database, load existing exercise log
        """
        
        self.exerciseLogModel = ExerciseLogModel(self.db, date, self)
        self.dailyExerciseLog.setModel(self.exerciseLogModel)
        
if __name__ == '__main__':
    app = QApplication(sys.argv)
    app.setOrganizationName('visrolia.net')
    app.setOrganizationDomain('visrolia.net')
    app.setApplicationName('Tracker')
    frame = MainWindow()
    frame.show()
    app.exec_()
Exemplo n.º 17
0
    @param tback: The Traceback
    @type tback: Traceback
    """
    # log the exception 
    tbackString = traceback.format_list(traceback.extract_tb(tback))
    logging.exception("\nAn exception occurred: %s\nTraceback: %s" % (value,
                                                                      tbackString))

    # then call the default handler
    sys.__excepthook__(type, value, tback)


if __name__ == '__main__':
    sys.excepthook = my_excepthook  # catch all exceptions for the logger

    app = QApplication(sys.argv)
    #set some info, just to be thorough (this stuff is mainly set in BioParkinController or the Ui_MainWindow itself).
    app.setOrganizationName("Zuse Institute Berlin")
    app.setOrganizationDomain("zib.de")
    app.setApplicationName("BioPARKIN")

    parkin = BioParkinController(sys.argv)
    parkin.show()

    app.exec_()

    #cProfile.run('app.exec_()')