# Upgrade version makes buttons dissapear (possible bug?)

**URL:** <https://forum.inductiveautomation.com/t/upgrade-version-makes-buttons-dissapear-possible-bug/54921>\
**Category:** Ignition\
**Created:** [January 12, 2022, 10:26am UTC](https://forum.inductiveautomation.com/t/upgrade-version-makes-buttons-dissapear-possible-bug/54921 "2022-01-12T10:26:27Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 5, 2022, 8:46pm UTC](https://forum.inductiveautomation.com/t/upgrade-version-makes-buttons-dissapear-possible-bug/54921/14 "2022-04-05T20:46:19Z")

</div>

For anyone finding/being linked to this thread in the future; if you want a ‘middle ground’ solution between a global UI manager key and setting every button up with scripting, you could use a technique like this to recursively modify every button in the window (e.g. in `visionWindowOpened`):

```python
from javax.swing import AbstractButton
from com.inductiveautomation.ignition.client.IgnitionLookAndFeel import setBlendMode
from de.javasoft.plaf.synthetica.util.Synthetica2DUtils import BlendMode

def getComponents(window):
	def walkComponents(component):
		for component in component.components:
			yield component
			walkComponents(component)
	
	return walkComponents(window.rootContainer)
	
isButton = lambda component: isinstance(component, AbstractButton)

def updateBlendMode(component, blendMode):
	setBlendMode(component, blendMode)
	component.repaint()

```

In use:

```auto
win = system.gui.getWindow("buttons")
for button in filter(isButton, getComponents(win)):
	updateBlendMode(button, BlendMode.ALPHA)

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/upgrade-version-makes-buttons-dissapear-possible-bug/54921)._
