title: Python - Inheritance from a Tk class
body: <p>I'm trying to create a modular class ( for some gui buttons ).
  <code>CoreButton</code> should consist of most methods for a common button, including tk frame.</p>
  
  <p>Goal is to inheret <code>CoreButton</code>  - and to use its frame to build rest of button's GUI - it does not appear.</p>
  
  <p>any help will be appriciated</p>
  
  <pre><code>class CoreButton(ttk.Frame):
  
      def __init__(self, master,nickname, hw_in=[], hw_out=[],ip_in='', ip_out='', sched_vector=[]):
          ttk.Frame.__init__(self, master)
          self.master = master
          if ip_in == '': ip_in = ip_out  # in case remote input is not defined
  
          self.grid()
       #####Rest of code
  </code></pre>
  
  <p>and class that inherits:</p>
  
  <pre><code>class ToggleBut2(CoreButton):
      def __init__(self, master, hw_in=[], hw_out=[],ip_in='', ip_out='', sched_vector=[]):
          CoreButton.__init__(self, master, nickname="JOHM", hw_in=hw_in, hw_out=hw_out, ip_in=ip_in, ip_out=ip_out, sched_vector=sched_vector)
          self.master = master
  
      def build_gui(self, nickname='babe', height=3, width=13):
  
          self.button = tk.Checkbutton(self, text=nickname, variable=self.but_var, indicatoron=0, height=height, width=width, command=self.sf_button_press)
          self.button.grid(row=0, column=0)
  </code></pre>