All pastes #2059613 Raw Edit

Miscellany

public python v1 · immutable
#2059613 ·published 2011-05-15 04:08 UTC
rendered paste body
#!/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/>.'''from PySide.QtGui import QMainWindow, QPushButton, QApplication, QTabWidgetfrom mainwindow import MainWindowfrom ui_mainwindow import Ui_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 usedclass 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."""        super(MainWindow, self).__init__(parent)        self.setupUi(self)        if __name__ == '__main__':    import sys    app = QApplication(sys.argv)    frame = oskitchenApp()    frame.show()        app.exec_()