Import Client Module Error - AttributeError: ‘module’ object has no attribute - Talk Python

If you want to be redirected to home after the user clicks “add measurement” you could do:

def button_save_click(self, **event_args):
   .
   .
   .
   # this gives you a reference to the main form
   get_open_form().link_home_click()

I have not been able to import navigation inside your subform based on your setup for some reason (there might be an issue with circular imports, or a bug) but you should have access to its various functions via your main form.

If I had to guess I’d say that when the sub form imports navigation, it happens to be before the main form has actually finished importing it, hence the error that navigation does not exist.

1 Like