Пример #1
0
				if 'C' in self.atom_names[i]: self.load_gl_color("white")
				elif 'N' in self.atom_names[i]: self.load_gl_color("green")
				elif 'O' in self.atom_names[i]: self.load_gl_color("blue")
				elif 'S' in self.atom_names[i]: self.load_gl_color("red")
				elif 'H' in self.atom_names[i]: self.load_gl_color("yellow")
				else: self.load_gl_color("dark_grey")
				
				glCallList(self.highresspheredl)
				glPopMatrix()
			glEndList()
		try:
			glCallList(self.dl)
		except:
			print "call list failed",self.dl
			glDeleteLists(self.dl,1)
			self.dl = None

class EMSphereModelInspector(EMPDBItem3DInspector):
	
	def __init__(self, name, item3d):
		EMPDBItem3DInspector.__init__(self, name, item3d)

if __name__ == '__main__' :
	print("WARNING: This module is not designed to be run as a program. The browser you see is for testing purposes.")
	from emapplication import EMApp
	from embrowser import EMBrowserWidget
	app = EMApp()
	browser = EMBrowserWidget(withmodal = False, multiselect = False)
	browser.show()
	app.execute()
	
Пример #2
0
	def __init__(self, withmodal=False, multiselect=False, startpath="./micrographs"):
		EMBrowserWidget.__init__(self, withmodal=withmodal, multiselect=multiselect, startpath=startpath)
Пример #3
0
	def __init__(self, withmodal=False, multiselect=False):
		EMBrowserWidget.__init__(self, withmodal=withmodal, multiselect=multiselect, startpath="./subtomograms")
Пример #4
0
	def __init__(self, withmodal=False, multiselect=False):
		EMBrowserWidget.__init__(self, withmodal=withmodal, multiselect=multiselect, startpath="./initial_models")
Пример #5
0
	def __init__(self, withmodal=False, multiselect=False):
		EMBrowserWidget.__init__(self, withmodal=withmodal, multiselect=multiselect, startpath="./particles",setsmode=True)
		self.wfilter.setCurrentIndex(1)