wxGrid - freeze pane

Hi!

Is there a wxPython command to freeze first few rows or columns during the vertical or horizontal scroll?
If not, how can it be programmed?

Thanks!

Neven

As far as I know, you need to roll your own.

···

On Mar 23, 2:54 am, Neven Goršić <neven.gor...@gmail.com> wrote:

Hi!

Is there a wxPython command to freeze first few rows or columns during the
vertical or horizontal scroll?
If not, how can it be programmed?

Thanks!

Neven

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

Where can I see some solutions or at least get a clue how to do it?

Neven

···

On Tue, Mar 23, 2010 at 2:50 PM, Mike Driscoll kyosohma@gmail.com wrote:

On Mar 23, 2:54 am, Neven Goršić neven.gor...@gmail.com wrote:

Hi!

Is there a wxPython command to freeze first few rows or columns during the

vertical or horizontal scroll?

If not, how can it be programmed?

Thanks!

Neven

As far as I know, you need to roll your own.


Mike Driscoll

Blog: http://blog.pythonlibrary.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

To unsubscribe from this group, send email to wxpython-users+unsubscribegooglegroups.com or reply to this email with the words “REMOVE ME” as the subject.

One approach to take would be to put two grids in a splitter window, have them use the same table object and set the grid in the lower side of the splitter to not show the column headers. You'll then probably need to synchronize the column widths, horizontal scrollbars, etc. Have fun.

···

On 3/23/10 12:54 AM, Neven Goršić wrote:

Hi!

Is there a wxPython command to freeze first few rows or columns during
the vertical or horizontal scroll?
If not, how can it be programmed?

--
Robin Dunn
Software Craftsman

Thanks for the idea. I hope that new version of wxPython will bring that functionality. Maybe it is not too complicated to provide it.

Kind regards,

Neven

···

On Thu, Mar 25, 2010 at 8:14 AM, Robin Dunn robin@alldunn.com wrote:

On 3/23/10 12:54 AM, Neven Goršić wrote:

Hi!

Is there a wxPython command to freeze first few rows or columns during

the vertical or horizontal scroll?

If not, how can it be programmed?

One approach to take would be to put two grids in a splitter window, have them use the same table object and set the grid in the lower side of the splitter to not show the column headers. You’ll then probably need to synchronize the column widths, horizontal scrollbars, etc. Have fun.

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

To unsubscribe from this group, send email to wxpython-users+unsubscribegooglegroups.com or reply to this email with the words “REMOVE ME” as the subject.

Probably not unless somebody who wants it real bad submits a patch for it. I don't think any of the core developers would work on it unless they had a pressing need for it themselves, or unless somebody did all the work for them and contributed a patch for it.

···

On 3/25/10 2:35 PM, Neven Goršić wrote:

Thanks for the idea. I hope that new version of wxPython will bring that
functionality. Maybe it is not too complicated to provide it.

--
Robin Dunn
Software Craftsman

Good to know … I thought that it is not so exotic feature …
Does the PyQt and QT has it? Or Tkinter?
Thank you for your sincerity.

Neven

···

On Thu, Mar 25, 2010 at 10:48 PM, Robin Dunn robin@alldunn.com wrote:

On 3/25/10 2:35 PM, Neven Goršić wrote:

Thanks for the idea. I hope that new version of wxPython will bring that

functionality. Maybe it is not too complicated to provide it.

Probably not unless somebody who wants it real bad submits a patch for it. I don’t think any of the core developers would work on it unless they had a pressing need for it themselves, or unless somebody did all the work for them and contributed a patch for it.

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

To unsubscribe from this group, send email to wxpython-users+unsubscribegooglegroups.com or reply to this email with the words “REMOVE ME” as the subject.

Tkinter doesn't even have a grid widget, although Tix seems to. I'm
pretty sure the Tix grid does not have the freeze pane functionality
though. I have no idea what PyQt has.

···

On Mar 25, 5:17 pm, Neven Goršić <neven.gor...@gmail.com> wrote:

Good to know ... I thought that it is not so exotic feature ...
Does the PyQt and QT has it? Or Tkinter?
Thank you for your sincerity.

Neven

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

Thank you for your info,

I thought that would be a piece of cake for wxPython developers: just make the position of the upper scrolling area adjustable and take freeze rows into calculation of position of the grid cursor …
I think that is useful feature and not too hard to provide, but obviously developers thinks differently :slight_smile:

Kind regard,

Neven

···

On Fri, Mar 26, 2010 at 2:43 PM, Mike Driscoll kyosohma@gmail.com wrote:

On Mar 25, 5:17 pm, Neven Goršić neven.gor...@gmail.com wrote:

Good to know … I thought that it is not so exotic feature …

Does the PyQt and QT has it? Or Tkinter?

Thank you for your sincerity.

Neven

Tkinter doesn’t even have a grid widget, although Tix seems to. I’m

pretty sure the Tix grid does not have the freeze pane functionality

though. I have no idea what PyQt has.


Mike Driscoll

Blog: http://blog.pythonlibrary.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

To unsubscribe from this group, send email to wxpython-users+unsubscribegooglegroups.com or reply to this email with the words “REMOVE ME” as the subject.