Re: Re: Phoenix - wx.ScrolledWindow with VSCROLL

Scott Talbert <[email protected]>
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
On Sat, 5 Mar 2016, woss wrote:

> 2016. március 5., szombat 20:20:46 UTC+1 időpontban woss a következőt írta:
> 
>
>       2016. március 5., szombat 19:26:39 UTC+1 időpontban
>       [email protected] a következőt írta:
>             On Saturday, March 5, 2016 at 12:47:16 PM UTC-5,
>             woss wrote:
>                   Hi Robin,
> Now wx.VSCROLL is a bad.style for wx.ScrolledWindow.
>   ....
>   File "D:\Python\cv\treepanel.py", line 27, in __init__
>     super(TreePanelTree, self).__init__(parent,
> style=wx.SUNKEN_BORDER)
>   File
> "d:\python27\lib\site-packages\wx-3.1-msw\wx\lib\agw\customtreectrl.py",
> line 2820, in __init__
>     wx.ScrolledWindow.__init__(self, parent, id, pos,
> size, style|wx.HSCROLL|wx.VSCROLL, name)
> wx._core.wxAssertionError: C++ assertion "Assert failure"
> failed at ..\..\src\common\wincmn.cpp(858) in
> wxWindowBase::GetWindowBorderSize(): Unknown border style.
> 
> The last good version was:    '3.0.3.dev1943+fdf739f'
> 
> (Error sample:  Demo / CustomTreeCtrl)
> 
> Win7_64SP1 / py2.7_32 /  wxPhoenix_3.0.3.dev1956+aab2833
> 
> 
> Interesting.  I submitted a patch recently to fix the wrapping
> of wx.VSCROLL, so it is possibly related to that.  What does
> "print wx.VSCROLL" show on Windows?
> 
> 
> Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 20:32:19) [MSC
> v.1500 32 bit (Intel)] on win32
> Type "copyright", "credits" or "license()" for more information.
> >>> import wx
> >>> wx.version()
> '3.0.3.dev1956+aab2833 msw (phoenix)'
> >>> wx.VSCROLL, wx.HSCROLL
> (2147483648L, 1073741824)
> >>>  
> 
> 
> and 
> 
> >>> type(wx.VSCROLL), type(wx.HSCROLL)
> (<type 'long'>, <type 'int'>) 

What are you passing in for 'style'?  wx.SUNKEN_BORDER?

Can you print out the value of:
wx.SUNKEN_BORDER|wx.VSCROLL|wx.HSCROLL
wx.VSCROLL|wx.HSCROLL

Scott
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.