PEATDB/plugins/KineticsAnalysis.py
def callfromGUI(self):
        """Run from GUI, passing opt vars"""
        opts, remainder = self.parser.parse_args()
        for o in opts.__dict__.keys():
            if o in self.optvars:
                opts.__dict__[o] = self.optvars[o].get()

        #redirect stdout to log win
        self.log.delete(1.0,END)
        sys.stdout = self
        sys.stderr = self
        self.run(opts)
        sys.stdout = sys.__stdout__
        sys.stderr = sys.__stderr__
        return
Run from GUI, passing opt vars
Run from GUI, passing opt vars
Run from GUI passing opt vars
def callfromGUI(self):
        opts, remainder = self.parser.parse_args()
        for o in opts.__dict__.keys():
            if o in self.optvars:
                opts.__dict__[o] = self.optvars[o].get()
        self.log.delete(1.0,END)
        sys.stdout = self
        sys.stderr = self
        self.run(opts)
        sys.stdout = sys.__stdout__
        sys.stderr = sys.__stderr__
        return
def callfromGUI ( self ) : opts , remainder = self . parser . parse_args ( ) for o in opts . __dict__ . keys ( ) : if o in self . optvars : opts . __dict__ [ o ] = self . optvars [ o ] . get ( ) self . log . delete ( 1.0 , END ) sys . stdout = self sys . stderr = self self . run ( opts ) sys . stdout = sys . __stdout__ sys . stderr = sys . __stderr__ return
Run from GUI, passing opt vars
Run from GUI passing opt vars
"""Run from GUI, passing opt vars""" #redirect stdout to log win
self