Re: Re: Phoenix - wx.ScrolledWindow with VSCROLL
woss <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
2016. március 5., szombat 21:41:02 UTC+1 időpontban Scott Talbert a következőt írta: > > 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 3.0.3.dev1943+fdf739f msw (phoenix) --------------------------------------------------- wx.VSCROLL : -2147483648 <type 'int'> wx.HSCROLL : 1073741824 <type 'int'> wx.HSCROLL|wx.VSCROLL : -1073741824 <type 'int'> wx.SUNKEN_BORDER : 134217728 <type 'int'> wx.SUNKEN_BORDER|wx.HSCROLL : 1207959552 <type 'int'> wx.SUNKEN_BORDER|wx.HSCROLL|wx.VSCROLL : -939524096 <type 'int'> 3.0.3.dev1956+aab2833 msw (phoenix) ----------------------------------------------------- wx.VSCROLL : 2147483648 <type 'long'> wx.HSCROLL : 1073741824 <type 'int'> wx.HSCROLL|wx.VSCROLL : 3221225472 <type 'long'> wx.SUNKEN_BORDER : 134217728 <type 'int'> wx.SUNKEN_BORDER|wx.HSCROLL : 1207959552 <type 'int'> wx.SUNKEN_BORDER|wx.HSCROLL|wx.VSCROLL : 3355443200 <type 'long'> 9 etg/defs.py <https://github.com/wxWidgets/Phoenix/commit/aa0be2719e8d2577a6b6857660c97bc73ecc8111#diff-0fb7fe8010dd4ca3b13b7b8091ec4de8> @@ -47,6 +47,15 @@ def run(): module.find('wxIntPtr').type = 'long' #'ssize_t' module.find('wxUIntPtr').type = 'unsigned long' #'size_t' + # Correct the types for these as their values are outside the range of int + module.find('wxUINT32_MAX').type = 'long' + module.find('wxINT64_MIN').type = 'long long' + module.find('wxINT64_MAX').type = 'long long' + module.find('wxUINT64_MAX').type = 'unsigned long long' + module.find('wxCANCEL_DEFAULT').type = 'unsigned long' + module.find('wxWINDOW_STYLE_MASK').type = 'unsigned long' + module.find('wxVSCROLL').type = 'unsigned long' *<--- perhaps 'unsigned' is the cause?* + module.find('wxInt8').pyInt = True module.find('wxUint8').pyInt = True module.find('wxByte').pyInt = True <https://github.com/wxWidgets/Phoenix/commit/aa0be2719e8d2577a6b6857660c97bc73ecc8111#diff-0fb7fe8010dd4ca3b13b7b8091ec4de8> -- You received this message because you are subscribed to the Google Groups "wxPython-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.