#!/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.QtGui import QMainWindow, QPushButton, QApplication, QTabWidget
from mainwindow import MainWindow
# 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(QMainWindow):
_statusBar = None
titleWidget = None
def __init__(self, parent=None):
""" 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.QMainWindow.__init__(self, parent)
def StartGui(self, parent=None):
self.mainwin = mainwindow.MainWindow(e)
self.mainwin.show()
self.exec_()