You can simplify your python code. Because your kv file name and app class file name are the same the kv file is loaded automatically.
from kivymd.app import MDApp
class MDtest(MDApp):
def btnfunc(self):
print("button is pressed!!")
if __name__ == "__main__":
MDtest().run()
In your kv code, the on_press event is an event of MDButton, not MDButtonText, change as below:
MDButton:
style: 'elevated'
pos_hint: {'center_x': 0.5, 'center_y': 0.3}
on_press: app.btnfunc()
MDButtonIcon:
icon: 'plus'
MDButtonText:
text: "Submit"