473,289 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

wxPython Grid Question

Hey Peoples,
I'm wonderg if there is a way to make a subclass of wx.grid.Grid in
which the coloumn labels for the grid appear on the bottom of the grid
instead of the top.

1 2 3 4 5
a| | | | | |
b| | | | | |
c| | | | | |
d| | | | | |
e| | | | | |

Just in case that wasn't clear (and because I just feel like typing
more): The above grid has labels in the normal placement. The grid
below has the labels in the places I want them.

a| | | | | |
b| | | | | |
c| | | | | |
d| | | | | |
e| | | | | |
1 2 3 4 5

Thanks

Aug 17 '06 #1
3 2704
Hi,
Jordan a écrit :
Hey Peoples,
I'm wonderg if there is a way to make a subclass of wx.grid.Grid in
which the coloumn labels for the grid appear on the bottom of the grid
instead of the top.

1 2 3 4 5
a| | | | | |
b| | | | | |
c| | | | | |
d| | | | | |
e| | | | | |

Just in case that wasn't clear (and because I just feel like typing
more): The above grid has labels in the normal placement. The grid
below has the labels in the places I want them.

a| | | | | |
b| | | | | |
c| | | | | |
d| | | | | |
e| | | | | |
1 2 3 4 5
I don't know a regular way to do that, and may be it's not the right
place to ask that, but what you'd do is to build two grids with the same
layout, one at the top without the column label, and another below
without data lines.
It could work, but looks strange, and is probably a source of confusion
for users.
rgds,
jm
Aug 17 '06 #2
Jordan wrote:
Hey Peoples,
I'm wonderg if there is a way to make a subclass of wx.grid.Grid in
which the coloumn labels for the grid appear on the bottom of the grid
instead of the top.
Hi Jordan :)

Not quite what you want, but I'm about to try faking labels in a grid.
The reason is that I want more control regarding rendering the labels
(using simple checkboxes and other features). So I'll try to get the
first row to display as "headers". If that works, would it help you?
And would you append rows frequently?

Just FWIW, I recall reading that a grid is composed of some base
elements (scrolled window and something else), so you might try to
follow that lead. But jean-michel has two good points: it could be
easier to use 2 grids and http://wxpython.org/maillist.php would give
you better answers :)

Cheers,
Daniel

Aug 17 '06 #3
>I'm wonderg if there is a way to make a subclass of wx.grid.Grid in
>which the coloumn labels for the grid appear on the bottom of the grid
instead of the top.

follow that lead. But jean-michel has two good points: it could be
easier to use 2 grids and http://wxpython.org/maillist.php would give
you better answers :)
After a while, I think in the case where you'd want to use 2 grids, it
could be tricky to reproduce scrollings and events across the two
grids... and there are probably other inconvenients, particularly if you
include it in sizers.
Its probably not a so much good point.
rgds
jm
Aug 18 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Logan | last post by:
Is it possible to tell the wxPython widgets (e.g. file dialogs) to use another language (instead of English)? Thanks in advance for any hints! -- mailto: logan@phreaker(NoSpam).net
1
by: Piet | last post by:
Hello, I have written a small program which dynamically displays data from a data structure in a wx.grid. The grid reacts as expected when the data structure is enlarged: a new row is added and...
3
by: pnp | last post by:
When I use a custom class object as the selected object of a property gird control is there a way to set custom names fro the grouped sections shown in it? Thanks, Peter
6
by: rbann11 | last post by:
Hi, I am looking for example code that consists of just a frame and a grid(10x2). The grid must fill the its parent even if the frame is resized. Thanks in advance, Roger
0
by: DarkBlue | last post by:
Trying to install wxPython on Suse10.1 64 with gcc4.1.0 and get wxPython-src-2.6.3.2/wxPython # python setup.py install Found wx-config: /usr/local/bin/wx-config Using flags: --toolkit=gtk2...
1
by: Kiran | last post by:
Hello All, I created a grid, where I register events every time the user changes an existing value inside the grid control. Right now, I am using the event: EVT_GRID_CELL_CHANGE. However, I...
2
by: Kiran | last post by:
Hello All, I am writing an app in wxPython using a grid. I need to be able to recognize what cell in the grid the user is hovering over with the mouse. How to do this? I tried XYToCell(x, y),...
3
by: Eric_Dexter | last post by:
I am having trouble trying to reuse the code that was provided in the wxdemo package of wxpython. The program I am trying to use parts of is Grid_MegaExample.py thier code is class...
0
by: gooli | last post by:
The best thing I've found until now is XRCed. It has it's quirks and pitfalls, but it fits the bill. Personally I prefer the previous version (the one that comes with wxPython 2.8.6) and don't...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.