Re: Bug in sash drag
Scott Talbert <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 12 Apr 2016, Eric Fahlgren wrote: > Attempting to drag a sash splitter in an AUI window gives this: > Traceback (most recent call last): > File "venv/lib/site-packages/wx/lib/splitter.py", line 437, in _OnMouse > self._DrawSashTracker(self._oldX, self._oldY) > File "venv/lib/site-packages/wx/lib/splitter.py", line 701, in > _DrawSashTracker > x1, y1 = self.ClientToScreen(x1, y1) > TypeError: Window.ClientToScreen(): argument 1 has unexpected type 'int' > > I have a simple hack that fixes it (put parens around x1,y1 to make it a > tuple, repeat also on line 702), but is this a missing overload on > ClientToScreen? It seems likely that it should it really accept a pair of > ints in addition to "point" objects... > > Using Py 2.7.11 x64, Phoenix 3.0.3.dev1964+f780b21 (build from 2016-04-09, > so only a couple days old). It looks like the overload is missing on purpose: https://github.com/wxWidgets/Phoenix/blob/master/etg/window.py#L70 Scott