title: TextCtrl scrollbar unusable until window is resized
body: <p><strong>Solved</strong>:
  Thanks to Aya's answer below I now know that the issue was caused by <code>self.panel = wx.Panel(self, -1)</code> on line 18. I created a panel and didn't attach anything to it. The original issue description is still below for reference.</p>
  
  <p>My Google-fu has failed me. I'm building the text editor that you can find here, written in Python with wxPython:</p>
  
  <p><a href="https://github.com/joshsaintjacque/py-ed/blob/master/pyed.py" rel="nofollow">https://github.com/joshsaintjacque/py-ed/blob/master/pyed.py</a></p>
  
  <p>The issue that I'm running into is this: when I open a text file (the only functionality built in at this point) that's larger than the viewable area in the TextCtrl the scroll bar remains disabled until the window is re-sized, then it works fine.</p>
  
  <p>I know that the act of re-sizing the window is running some command that I'm neglecting to include in my OpenFile function (or perhaps in <strong>init</strong>), but I can't figure out what.
  Any thoughts anyone has that could lead me in the right direction would be greatly appreciated.</p>
  
  <p>Thanks!</p>