I reckon the warning is caused by the MenuItem class

MenuItem class is imported from sugar3.graphics.menuitem and as is visible in the above screenshot, it's causing Gtk to throw a warning
This might be a deprecation issue or an issue with how the alignment is being set for the MenuItem class as seen here