def __init__( self, about, parenting = None ) :

		GafferUI.Window.__init__( self, title = "About " + about.name(), sizeMode=GafferUI.Window.SizeMode.Manual, borderWidth = 6, parenting = parenting )

		self.__linkActivatedConnections = []

		with self :

			with GafferUI.TabbedContainer() :

				with GafferUI.ListContainer(
					GafferUI.ListContainer.Orientation.Vertical,
					spacing=10,
					borderWidth=10,
					parenting = { "label"  : "Gaffer" },
				) :

					GafferUI.Spacer(
						IECore.V2i( 1 ),
						parenting = { "expand" : True }
					)

					GafferUI.Image(
						"GafferLogo.png",
						parenting = { "horizontalAlignment" : GafferUI.HorizontalAlignment.Center }
					)

					text = "<h3><a href='%s'>%s</a></h3> <small>Version %s</small>" % (
						about.url(),
						about.url(),
						about.versionString(),
					)

					self.__label(
						text,
						horizontalAlignment = GafferUI.HorizontalAlignment.Center,
						parenting = { "horizontalAlignment" : GafferUI.Label.HorizontalAlignment.Center },
					)

					GafferUI.Spacer(
						IECore.V2i( 1 ),
						parenting = { "expand" : True }
					)

					self.__label(
						"<small>%s</small>" % about.copyright().replace( "(c)", "&copy;" ),
						parenting = { "horizontalAlignment" : GafferUI.Label.HorizontalAlignment.Center },
					)

				with GafferUI.ListContainer(
					GafferUI.ListContainer.Orientation.Vertical,
					spacing=10,
					borderWidth=10,
					parenting = { "label"  : "License" },
				) :

					license = "".join( open( os.path.expandvars( about.license() ) ).readlines() )
					with GafferUI.ScrolledContainer(
						horizontalMode=GafferUI.ScrolledContainer.ScrollMode.Never,
						verticalMode=GafferUI.ScrolledContainer.ScrollMode.Automatic,
						borderWidth = 5
					) :
						self.__label( "<pre>" + license + "</pre>" )

				dependencies = about.dependencies()
				if dependencies :

					with GafferUI.ListContainer(
						GafferUI.ListContainer.Orientation.Vertical,
						spacing=10,
						borderWidth=10,
						parenting = { "label" : "Dependencies" },
					) :

						with GafferUI.ScrolledContainer(
							horizontalMode=GafferUI.ScrolledContainer.ScrollMode.Never,
							verticalMode=GafferUI.ScrolledContainer.ScrollMode.Always,
							borderWidth = 5
						) :

							with GafferUI.ListContainer( GafferUI.ListContainer.Orientation.Vertical, spacing=5, borderWidth=10 ) :

								text = "<p>%s</p>" % self.__wrapText( about.dependenciesPreamble() )

								for d in dependencies :

									text += "<h3>%s</h3>" % d["name"]

									if d in "credit" :
										text += "<p>%s</p>" % self.__wrapText( d["credit"] )

									if "license" in d :
										text += "<a href='file://%s'>License</a>" % os.path.expandvars( d["license"] )

									if "url" in d :
										if "license" in d :
											text += " | "
										text += "<a href='%s'>%s</a>" % ( d["url"], d["url"] )

								self.__label( text )
dataset/ETHPy150Open ImageEngine/gaffer/python/GafferUI/AboutWindow.py/AboutWindow.__init__/swapped operands of `in`