Exemplo n.º 1
0
    def __init__(self, parent):
        Main.__init__(self, parent)

        self.barcode_button.Bind(wx.EVT_BUTTON, self.handleBarcode)
        self.defect_panel.Bind(wx.EVT_CHAR_HOOK, self.focusBarcode)
        self.barcode_panel.Bind(wx.EVT_CHAR_HOOK, self.focusBarcode)
        self.kbd_button.Bind(wx.EVT_TOGGLEBUTTON, self.toggleKeyboard)

        self.handleVirtualKeyboard()

        self.Show()
Exemplo n.º 2
0
 def __init__(self):
     #create gui component
     self.window = M.Main()
     self.window.show()
     #create nao module
     self.robot = robot.Robot()
     #set signals
     self.set_signals()
Exemplo n.º 3
0
def main():
    """ Main method responsible for developing the main objects used during runtime
    like the BaseStation and Main objects. """

    # Define Queue data structures in order to communicate between threads.
    to_GUI = Queue()
    to_BS = Queue()

    # Create a BS (base station) and GUI object thread.
    threaded_bs = BaseStation(to_BS, to_GUI)
    threaded_bs.start()

    # Create main GUI object
    gui = Main(to_GUI, to_BS)
Exemplo n.º 4
0
def main():
    """ Main method responsible for developing the main objects used during runtime
    like the BaseStation and Main objects. """

    # Define Queue data structures in order to communicate between threads.
    to_GUI = Queue()
    to_BS = Queue()

    # Create a BS (base station) and GUI object thread.
    try:
        threaded_bs = BaseStation(to_BS, to_GUI)
        threaded_bs.start()
    except:
        print("[MAIN] Base Station initialization failed. Closing...")
        sys.exit()

    # Create main GUI object
    gui = Main(to_GUI, to_BS)
Exemplo n.º 5
0
from gui import Main


if __name__ == "__main__":
    app = Main()
    app.mainloop()
Exemplo n.º 6
0
 def on_open(self):
     with enaml.imports():
         from gui import Main
     mainWindow=Main()
     mainWindow.AO=AO()
     self.windows.append(mainWindow)
Exemplo n.º 7
0
__author__ = 'Albion von Darx'
#__name__ = 'MuRFY - Music Right For You'

import sys, os, ConfigParser, shutil
from PyQt4.QtGui import *
from PyQt4.QtCore import *


def config(*args, **kwargs):
	cp = ConfigParser.ConfigParser()
	cfgdir = os.path.expanduser(os.path.join('~','.murfy'))
	cfgfile = os.path.join(cfgdir,'murfy.cfg')
	if not os.path.exists(cfgfile):
		if not os.path.exists(cfgdir):
			os.makedirs(cfgdir)
		shutil.copyfile('default.cfg', cfgfile)
	cp.readfp(open(cfgfile))
	if kwargs.has_key('v'):
		cp.set(kwargs['s'], kwargs['o'], kwargs['v'])
		cp.write(open(cfgfile, 'w'))
	else:
		return cp.get(kwargs['s'], kwargs['o'])

if __name__ == '__main__':
	os.chdir(os.path.dirname(__file__))
	from gui import Main
	app = QApplication(sys.argv)
	w_main = Main()
	w_main.show()
	sys.exit(app.exec_())
Exemplo n.º 8
0
def main():
    game = Main(Table())
    game.run()
Exemplo n.º 9
0
 def __init__(self, argv):
     QApplication.__init__(self, argv)
     self.ui = Main()
     self.ui.show()