Ejemplo n.º 1
0
def main():

    # Create the Monitor object
    monitor = Monitor()
    # Validate configuration
    if (not monitor.CheckConfig()):
        print("The file 'pipemonitor.cfg' should have two lines:")
        print(
            "line 1: The full path and name of the Main Configuration File (see below)"
        )
        print(
            "        Note that this file must be accessible from both Monitor and Workers"
        )
        print(
            "line 2: The Recipe Folder where the job descriptions are located."
        )
        print(
            "        This folder may be local to the computer running the Monitor."
        )
        print("        It is never used by the Workers.")
        print("")
        print("The Main Configuration File should have the following layout")
        print(
            "line 1: The Job Folder which will be used to communicate information about"
        )
        print(
            "        jobs. This folder must be the same on every computer used. This can"
        )
        print(
            "        be accomplished by using symbolic links on linux (the ln -s command) or"
        )
        print("        on Windows by selecting shared folders in a smart way.")
        print(
            "        NOTE: Each used computer MUST have write access to this folder and subfolders"
        )
        print(
            "line 2: The Brains Folder (where the data for processing will be available"
        )
        print(
            "        See the Job Folder above: same rules for naming and access"
        )
        print("")
        print(
            "******************************************************************"
        )
        print(monitor.errormessage)
        print(
            "******************************************************************"
        )
        sys.exit()

    app = wx.App(False)
    frame = MainWindow(None, monitor)
    frame.Show()
    app.MainLoop()
Ejemplo n.º 2
0
def main():
    controller = Controller()
    app = wx.App(False)
    frame = MainWindow(None, controller)
    frame.Show()
    app.MainLoop()
Ejemplo n.º 3
0
    w.c_set_a.SetItems(di.cases)
    w.c_set_a.SetSelection(0)

    w.c_set_b.SetItems(di.cases)
    w.c_set_b.SetSelection(0)

    w.c_set_c.SetItems(di.cases)
    w.c_set_c.SetSelection(0)

    w.c_set_d.SetItems(di.cases)
    w.c_set_d.SetSelection(0)

    w.t_status.SetLabelText('Init Success')


def clean_exit(w):
    w.Destroy()


if __name__ == '__main__':

    app = wx.App()
    w = MainWindow(None)

    init(w)

    w.Show()
    app.MainLoop()

    app.Destroy()