I have a class interface:
class Interface:
def __init__(self):
self.users_list = []
self.admins_list = []
self.categories_list = []
self.current_user = ''
self.user_flag = 0
@staticmethod
def start_menu(self):
print('Add user')
create_user()
show_menu()
@staticmethod
def create_user(self):
# code....
@staticmethod
def choose_user(self):
# code...
# call
inter = Interface()
inter.start_menu()
And I got the same error:
Traceback (most recent call last):File "C:\Users\79268\Downloads\store.py", line 191, in <module>
inter.start_menu()
TypeError: Interface.start_menu() missing 1 required positional argument: 'self'
I can't figure out what the problem is and the advice from this post (TypeError: Missing 1 required positional argument: 'self') didn't help?