def OnClick(self,event): 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 hcpplane.drawhc(a,h,k,0,l) #self.Destroy() #self.Close() 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