예제 #1
0
	def __init__(self, parent=None):

		super(SwitchPLU, self).__init__(parent)

		self.setupIF()
		self.setWindowTitle("Switch PLU")

		if os.path.basename(os.getcwd()).lower() != 'micro$ale':
			os.chdir(util.msale_dir())
예제 #2
0
import sip
sip.setapi('QString', 2)
sip.setapi('QVariant', 2)

import sys, os, images_rc, util

from odbcview import ODBCView
from switchplu import SwitchPLU

from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtSql import *

MSL = util.msale_dir()

QUERY_DIR = 'c:/RSS/SavedQueries'

try:
    os.makedirs(QUERY_DIR)
except OSError:
    pass

class MainWindow(QMainWindow):
    def __init__(self):
        super(MainWindow, self).__init__()

        ## main window setup
        self.setMinimumSize(1100, 700)
        self.setWindowTitle("Database Viewer")
        self.centralWidget = QWidget()