title: wxpython How to set dialog size fit to data in the dialog?
body: <p>I have a dialog window in <code>wxpython</code> as follows:</p>
  
  <pre><code>wx.Dialog.__init__(self,parent, title=_("Sum Report"),size=(840,680)) 
  </code></pre>
  
  <p>This give me the dialog with the selected size... However The dialog has different information for different users.. This caused that some of the users get horizontal scroll bar:</p>
  
  <p><a href="https://i.stack.imgur.com/9eHd2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9eHd2.png" alt="enter image description here"></a></p>
  
  <p>Is there a way to create the dialog so that the horizontal size will be dynamic (fit to the data)? The vertical size is always OK no need to change it.</p>