Пример #1
0
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#
##############################################################################


from Koo.Common import Localization
Localization.initializeTranslations()

# Load this after localization as these modules depend on it
from Koo.Common import Notifier, Common

# Declare notifier handlers for the whole application
Notifier.errorHandler = Common.error
Notifier.warningHandler = Common.warning
Notifier.concurrencyErrorHandler = Common.concurrencyError


from PyQt4.QtGui import *
from PyQt4.QtCore import *
import sys
from MainWindow import *


app = QApplication( sys.argv )

Localization.initializeQtTranslations()
window = MainWindow()
window.show()
app.exec_()
Пример #2
0
    app = QApplication(arguments)

app.setApplicationName('Koo POS')
app.setOrganizationDomain('www.NaN-tic.com')
app.setOrganizationName('NaN')

try:
    f = open(Settings.value('koo.stylesheet'), 'r')
    try:
        app.setStyleSheet(f.read())
    finally:
        f.close()
except:
    pass

Localization.initializeQtTranslations(Settings.value('client.language'))


from Koo.Dialogs.KooMainWindow import *
from Koo.Dialogs.WindowService import *
import Koo.Actions

mainWindow = QMainWindow(None, Qt.CustomizeWindowHint)

if Settings.value('koo.show_pos_toolbar'):

    toolBar = QToolBar(mainWindow)

    if Settings.value('koo.show_pos_button_new', True):

        def executeNew():
Пример #3
0
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#
##############################################################################


from Koo.Common import Localization
Localization.initializeTranslations()

# Load this after localization as these modules depend on it
from Koo.Common import Notifier, Common

# Declare notifier handlers for the whole application
Notifier.errorHandler = Common.error
Notifier.warningHandler = Common.warning
Notifier.concurrencyErrorHandler = Common.concurrencyError


from PyQt4.QtGui import *
from PyQt4.QtCore import *
import sys
from MainWindow import *


app = QApplication( sys.argv )

Localization.initializeQtTranslations()
window = MainWindow()
window.show()
app.exec_()