473,396 Members | 1,799 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,396 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 2708
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.