#!/usr/bin/env python
'''
# OSKitchen - An open-sourced kitchen management tool for professional establishments
# Copyright (C) 2011 Neal Hughes
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (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
from PySide import QtGui, QtCore
from PySide.QtGui import QApplication, QMainWindow
from PySide.QtCore import *
# from OSKitchen import paths -not created yet
# from OSKitchen import preferences -not created yet
# from OSKitchen import commands -not created yet
# from OSKitchen.widgets import tabwidget -not used
class oskitchenApp(QtGui.QApplication):
def __init__(self, args):
""" In the constructor we're doing everything to get our application
started, which is basically constructing a basic QApplication by
its __init__ method, then adding our widgets and finally starting
the exec_loop."""
QtGui.QApplication.__init__(self, args)
def StartGui(self, args):
from mainwindow import MainWindow
self.mainwin = MainWindow.MainWindow()
self.mainwin.show()
self.exec_()
if __name__ == '__main__':
app = QApplication(sys.argv)
frame = oskitchenApp()
frame.show()
app.exec_()