def OnClick(self,event):
         self.Close()
         a=int(self.editname1.GetValue())
         b=int(self.editname2.GetValue())
         c=int(self.editname3.GetValue())
         
         l=int(self.editname6.GetValue())
         w=int(self.editname7.GetValue())
         h=int(self.editname8.GetValue())
         cubicplane.main(a,b,c,l,w,h)
        
             
         return
 def OnClick(self,event):
         a=int(self.editname1.GetValue())
         c=int(self.editname3.GetValue())
         
         h=int(self.editname6.GetValue())
         k=int(self.editname7.GetValue())
         l=int(self.editname8.GetValue())
         #r=1
         #print self.str1
         #print self.str2
         cubicplane.main(a,a,c,h,k,l)         
         #self.Destroy()
         #self.Close()
             
         return
示例#3
0
    def OnClick(self,event):
            self.Close()
            
            a=int(self.editname1.GetValue())
            
            
            h=int(self.editname6.GetValue())
            k=int(self.editname7.GetValue())
            l=int(self.editname8.GetValue())
            #r=1
            #print self.str1
            #print self.str2
            cubicplane.main(a,a,a,h,k,l)
             # remove previous controls
             
            

            
            
                
            return
 def OnClick(self,event):
         a=int(self.editname1.GetValue())
         b=int(self.editname2.GetValue())
         c=int(self.editname3.GetValue())
         alpha=int(self.editname4.GetValue())
         
         beta=int(self.editname5.GetValue())
         gamma=int(self.editname6.GetValue())
         h=int(self.editname7.GetValue())
         k=int(self.editname8.GetValue())
         l=int(self.editname9.GetValue())
         
         #print self.str1
         #print self.str2
         if(self.str1=='cubic' or self.str1=='tetragonal' or self.str1=='orthorhombic'):
             cubicplane.main(a,b,c,h,k,l)
             
         if(self.str1=='monoclinic' or self.str1=='trigonal' or self.str1=='triclinic'):
             planesformonoclinic.main(a,b,c,alpha,beta,gamma,h,k,l)
             
         if(self.str1=='hexagonal'):
             hcpplane.drawhc(a,h,k,0,l)
         return