Error adding custom Python GTK widgets to glade 3.40.0

I am trying to add a custom python GTK widget glade following this example. As shown below, the widget group Python shows up but the widget awesome_text_view does not


Glade also outputs the following error message

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'awesome_text_view'

(glade.exe:22736): GladeUI-WARNING **: 18:01:35.729: We could not find the symbol "awesome_text_view_get_type"

(glade.exe:22736): GladeUI-WARNING **: 18:01:35.737: Could not get the type from "AwesomeTextView"

(glade.exe:22736): GladeUI-WARNING **: 18:01:35.743: Failed to load the GType for 'AwesomeTextView'

(glade.exe:22736): GladeUI-WARNING **: 18:01:35.750: Tried to include undefined widget class 'AwesomeTextView' in a widget group

Found the solution.

Posted the answer here.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.