title: Subclassing Tkinter.Text to create a custom widget
body: <p>I am trying to create a text widget with a vertical scrollbar, while retaining all the methods / functions from <code>Tkinter.Text</code>.</p>
  <p>So far I have the following code:</p>
  <pre><code>class ScrollableTextWidget(Tkinter.Text):
      def __init__(self, parent):
          self.parent = parent
          self.Frame = ttk.Frame(self.parent)
          Tkinter.Text.__init__(self, self.Frame, width=1, height=1)
          self.__initWidget()
  
      def __initWidget(self):
          self.Frame.grid(sticky=&quot;NSEW&quot;)
          self.ScrollbarY = ttk.Scrollbar(self.Frame, orient=&quot;vertical&quot;, 
                                          command=self.yview)
          self.configure(yscrollcommand=self.ScrollbarY.set)
          self.grid(column=0, row=0, sticky=&quot;NSEW&quot;)
          self.ScrollbarY.grid(column=1, row=0, sticky=&quot;NS&quot;)
          self.Frame.columnconfigure(0, weight=1)
          self.Frame.rowconfigure(0, weight=1)
  </code></pre>
  <p>Is it OK to create my custom widget like this or should I rather put it in a <code>Tkinter.frame</code> and write my own methods?</p>