python - How do I get the dimensions of the view (not obstructed by scrollbars) in a wx.ScrolledWindow? -


Is there an easy way to do this? Alternatively, if I can get the width of the scrollbar, then I can only use the dimensions of the scrolling window and can exclude myself ...

Use wx.SySetSettings.GetMetric () to get scrollbar size with wx.SYS_HSCROLL_Y and wx.SYS_VSCROLL_X. Then use the window. GetClientSize () and subtract it.

  & gt; & Gt; & Gt; Wx.SystemSettings.GetMetric (wx.SYS_HSCROLL_Y) 16 & gt; & Gt; & Gt; Wx.SystemSettings.GetMetric (wx.SYS_VSCROLL_X) 16  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -