I am not sure how much of this is necessary but I did some intuitive edits on the code and it works, if anyone can explain exactly why I would be most grateful.
Go to the
/home/user/blender-git/build_linux/bin/2.79/scripts/startup/bl_ui(respective to your system) folder where all the other editor
*.py startup files are copy
space_info.py, rename it to
In the same folder find the
__init__.py open it and add
space_yourspace to the constant
_modules, this will make blender run said module on startup, so be sure to edit the file before starting it up.
Now open up
space_yourspace.py and delete everything from
INFO_MT_editor_menus.draw_collapsible(context, layout) down to, but not including
classes = (.
Now in the classes tuple delete everything except
INFO_HT_header, be sure to leave one comma after
INFO_HT_header so it remains a tuple and not just a pair of parenthesis. Rename
YOURSPACE_OT_header in the tuple.
Go back to the remaining
class and rename it also to
class change the value of static variable
After this, you can start Blender and in the header of
yourspace you will have the said combo box.