With inheritance and access to the parent is something wrong?
<p>With inheritance and access to the parent, widgets are some weird wrong. I Need to make three section with the same widget as shown in the code. </p>

<p>I don't know how could do that really makes sense. Have you an idea how could this be done in the smartest way ? </p>

<pre><code>import Tkinter as tk

class Interface(tk.Frame):
    def __init__(self, parent,start, ver_part, *args, **kwargs):
        tk.Frame.__init__(self, parent, *args, **kwargs)
        self.parent = parent
        self.start = start
        self.ver_part = ver_part
        parent.title("Interface Window")

        self.frame = tk.LabelFrame(parent, text="Verification Part - %s"%ver_part)
        self.button = tk.Button(self.frame, text="%s"%ver_part)

        self.frame.grid(row=0+start)
        self.button.grid(row=0+start)

class Main(Interface):
    def __init__(self, parent, *args, **kwargs):
        tk.Frame.__init__(self, parent, *args, **kwargs)
        self.parent = parent
        self.button_run = tk.Button(parent, text="Run", command=self.on_run())
        self.button_run.grid(row=3)

    def on_run(self):
        pass

if __name__ == "__main__":
    root = tk.Tk()
    int_a = Interface(root,0, "A")
    int_b = Interface(root,1, "B")
    int_c = Interface(root,2, "C")
    root.mainloop()
</code></pre>

<p>You are giving one of your widgets a parent of <code>parent</code> rather than <code>self</code>.</p>

<p>Change this line:</p>

<pre><code>self.frame = tk.LabelFrame(parent, text="Verification Part - %s"%ver_part)
</code></pre>

<p>to this:</p>

<pre><code>self.frame = tk.LabelFrame(self, text="Verification Part - %s"%ver_part)
</code></pre>

<p>Once you've done that you need to call <code>pack</code>, <code>place</code> or <code>grid</code> on the individual instances of <code>Interface</code>. </p>

<p>For example:</p>

<pre><code>if __name__ == "__main__":
    ...
    int_a.pack(side="top", fill="both", expand=True)
    int_b.pack(side="top", fill="both", expand=True)
    int_c.pack(side="top", fill="both", expand=True)
</code></pre>

python python-2.7 class tkinter