Call a __init__ function from another function
<p>I need some help form all of you, so i have something like this</p>

<pre><code>class LoginFrame(Frame):

    def __init__(self, master):
        super().__init__(master)
        ...
        ...
        ...
   def _login_btn_clickked(self):

        ...
        ...
        result = messagebox.askyesno("Wrong username or password.", "Do you want to try again?")
        if result == True:
             self.__init__(self)
</code></pre>

<p>So if the user select the option to try again i need the whole program start again, and show the login box. But when i execute the program the process fail. </p>

<p>Are you using tkinter.Frame?</p>

<p>I should think that it wouldn't like being reconstructed through the use of 
    super().<strong>init</strong>()
While already being packed into a root window (I'm adsuming that is the setup you have).</p>

python recursion