[wxPython] Dragging Rows In Grid

I am attempting to drag a row in a grid but my scrollbar won't
move while dragging. I can only drag a row to another row that
is currently displayed. I can't drag it to a row I would need to
scroll to. Is there some way I can force the scrollbar to
scroll?

Thanks,
Dawn

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Hi all,

This is a continuation of a thread from the wxWindows users list about
potentially better syntax for Sizers. I've decided to move it here for
reasons that will become obvious if you read on.

Robin Dunn wrote:

> A few suggestions:
>
> Have separate methods for adding different things, ie:
> AddWindow()
> AddSpacer()
> AddSizer()

Actually, these are already there in the Python version. The various
overloaded instances of the C++ Add method had to be renamed and split into
different extension methods for the wrappers, then I did a bit of magic type
checking to make a Python Add() method that dispatches to the other three.

Interestingly, wxDesigner generates code using these names.

> The syntax I propose:
>
> FromBox.AddSpace(width = 20, height = 1, StretchWeight = 1)
> FromBox.AddControl(self.InputBox,
> StretchWeight = 0,
> Alignment = wxALIGN_LEFT,
> GrowStyle = wxEXPAND,
> BorderWidth = 2,
> BorderLocation = wxALL)

While this would be great for Python, it would only make the C++ version
more complex as it doesn't have keyword arguments.

Shows you how much I know about C++.

On the other hand, it
would be easy to wrap the current wxPython sizer classes in a Python class
that did implement the keyword args and the just put them together the right
way and called the existing Add. If you want to create such a thing I'll
add it to the wxPython.lib package.

Ahh, that old open source concept: "great idea, let me know when you've
implimented it."

OK. I'm not sure when I'll have a chance to do it, but I would like to.
At this point, if anyone has any ideas about the syntax that they would
like to see for Sizers, let me know, and hopefully I'll get a chance to
write up the code.

-Chris

···

--
Christopher Barker,
Ph.D.
cbarker@jps.net --- --- ---
http://www.jps.net/cbarker -----@@ -----@@ -----@@
                                   ------@@@ ------@@@ ------@@@
Water Resources Engineering ------ @ ------ @ ------ @
Coastal and Fluvial Hydrodynamics ------- --------- --------
------------------------------------------------------------------------
------------------------------------------------------------------------

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users