# Accessing an EditorUtilityWidget in Python

**URL:** <https://forums.unrealengine.com/t/accessing-an-editorutilitywidget-in-python/1321406>\
**Category:** Editor Scripting\
**Tags:** unreal-engine, question\
**Created:** [October 3, 2023, 5:43pm UTC](https://forums.unrealengine.com/t/accessing-an-editorutilitywidget-in-python/1321406 "2023-10-03T17:43:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![didiertido](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@didiertido](https://forums.unrealengine.com/u/didiertido)\
**Post date:** [October 3, 2023, 5:43pm UTC](https://forums.unrealengine.com/t/accessing-an-editorutilitywidget-in-python/1321406/1 "2023-10-03T17:43:05Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/a/8/2a8ed4cb2a77b387a753c672b3a0f7c98df3b474.png)

I’m trying to build a UI in Python as it’s easier for me to parse incoming data that way. I’m not very familiar with casting on Blueprint so I’m having this issue. I was using Construct from Class and it was working correctly but Python doesn’t seem to have that method.  
The button template (AssetButton) is an Editor Utility Widget that I assume it’s a synonim for WidgetBlueprintGeneratedClass (?).  
Would some kind of “new\_button = AssetButton()” kind of thing work? How are those imported into the inline Python?

Thanks!  
PS: I’m just trying some stuff, eventually I’ll move everything to an external py file.

Here’s the error

```auto
LogPython: <Object '/Game/EditorUtilities/AssetButton.AssetButton_C' (0x000006742AE41000) Class 'WidgetBlueprintGeneratedClass'>
LogScript: Error: Script Msg: Traceback (most recent call last):
  File "<string>", line 4, in <module>
TypeError: UniformGridPanel: Failed to convert parameter 'content' when calling function 'UniformGridPanel.AddChildToUniformGrid' on 'UniformGridPanel_0'
  TypeError: NativizeProperty: Cannot nativize 'BlueprintGeneratedClass' as 'Content' (ObjectProperty)
    TypeError: NativizeObject: Cannot nativize 'BlueprintGeneratedClass' as 'Object' (allowed Class type: 'Widget')
LogScript: Error: Script call stack:
    /Game/AssetLibrary.AssetLibrary_C.ExecuteUbergraph_AssetLibrary <---
    /Game/AssetLibrary.AssetLibrary_C.BndEvt __AssetLibrary_EditorUtilityButton_250_K2Node_ComponentBoundEvent_1_OnButtonClickedEvent__ DelegateSignature

```
