コード例 #1
0
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_())
コード例 #2
0
#
#       This program is distributed in the hope that it will be useful,
#       but WITHOUT ANY WARRANTY; without even the implied warranty of
#       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#       GNU General Public License for more details.
#
#       You should have received a copy of the GNU General Public License
#       along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
import sys
sys.path.append(
    '/Users/lukas/work/GridCellModel/grid_cell_model/simulations/007_noise/figures'
)

import logging as lg
#lg.basicConfig(level=lg.WARN)
lg.basicConfig(level=lg.INFO)

from PySide.QtGui import QApplication, QFont

from interactive_visualisation.gridsmainwindow import GridsMainWindow

if __name__ == '__main__':
    if sys.platform.startswith('darwin'):
        QFont.insertSubstitution(".Lucida Grande UI", "Lucida Grande")
    app = QApplication(sys.argv)
    window = GridsMainWindow()
    window.show()
    window.raise_()
    sys.exit(app.exec_())
コード例 #3
0
#       (at your option) any later version.
#       
#       This program is distributed in the hope that it will be useful,
#       but WITHOUT ANY WARRANTY; without even the implied warranty of
#       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#       GNU General Public License for more details.
#       
#       You should have received a copy of the GNU General Public License
#       along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
import sys
sys.path.append('/Users/lukas/work/GridCellModel/grid_cell_model/simulations/007_noise/figures')

import logging as lg
#lg.basicConfig(level=lg.WARN)
lg.basicConfig(level=lg.INFO)

from PySide.QtGui import QApplication, QFont

from interactive_visualisation.gridsmainwindow import GridsMainWindow


if __name__ == '__main__':
    if sys.platform.startswith('darwin'):
        QFont.insertSubstitution(".Lucida Grande UI", "Lucida Grande")
    app = QApplication(sys.argv)
    window = GridsMainWindow()
    window.show()
    window.raise_()
    sys.exit(app.exec_())