예제 #1
0
    def OnAssign(self, event=None):
        from . import usefulX as Y
        ss = "<2d section shown>"

        for i in range(len(Y.viewers)):
            try:
                v = Y.viewers[i]
                if v.viewer is self:
                    ss = "Y.vd(%d)[%s]"%(i, ','.join(map(str,v.zsec)))
                    break
            except:
                pass

        Y.assignNdArrToVarname(self.m_imgArr, ss)
예제 #2
0
    def OnAssign(self, event=None):
        from . import usefulX as Y
        ss = "<2d section shown>"

        for i in range(len(Y.viewers)):
            try:
                v = Y.viewers[i]
                if v.viewer is self:
                    ss = "Y.vd(%d)[%s]" % (i, ','.join(map(str, v.zsec)))
                    break
            except:
                pass

        Y.assignNdArrToVarname(self.m_imgArr, ss)
예제 #3
0
 def onAssign(self, ev):
     fn = self.fn_or_fns
     from Priithon.all import Y
     a = Y.load(fn)
     if a is not None:
         v = Y.assignNdArrToVarname(a, "Y.load( r'%s' )"%fn)
         if v is not None:
             self.pyshell.addHistory("%s = Y.load( r'%s' )"%(v,fn))
예제 #4
0
 def onAssign(self, ev):
     fn = self.fn_or_fns
     from Priithon.all import Y
     a = Y.load(fn)
     if a is not None:
         v = Y.assignNdArrToVarname(a, "Y.load( r'%s' )"%fn)
         if v is not None:
             self.pyshell.addHistory("%s = Y.load( r'%s' )"%(v,fn))