Questions tagged [wxgrid]

WxGrid is the grid widget in wxWidgets that can be used for displaying tabular data.

WxGrid is the grid widget in wxWidgets, a cross-compiler GUI frameword for C++ and Python. Typical uses for the grid are displaying tabular data and creating some kind of spreadsheet.

64 questions
3
votes
1 answer

How do I get the new index of a moved column in a wxGrid?

I'm using wxWidgets 3.1.0 and I'm developing a Windows app in C++. I'm using the base wxGrid and I've enabled column re-ordering via dragging them with the mouse (EnableDragColMove(true)). My problem now is that I need to get the moved column's new…
Gino Mempin
  • 25,369
  • 29
  • 96
  • 135
2
votes
1 answer

How do you use SetTabBehaviour in wxWidgets for C++?

I'm new to C++ Widgets and am trying to use the wxWidgets to create a grid. I have come across the function: "SetTabBehaviour" in the following documentations: (https://fossies.org/linux/wxWidgets/include/wx/generic/grid.h) and…
littlebluedeer
  • 103
  • 1
  • 9
2
votes
2 answers

How to hide index wxWidgets wxGrid

How can I hide or remove default index on wxGrid? I've been searching in wxWidgets's Documentation, and couldn't find it. This is the picture of wxGrid:
Sandy
  • 23
  • 4
2
votes
0 answers

In a wxGrid, how do I allow selection of only one cell?

I'm using a wxGrid and would like the user to only be able to select one cell, not a block of cells. (Or possibly multiple cells in the same column, but not necessarily the entire column.) The only idea I've had that had a chance of working was to…
ees
  • 335
  • 1
  • 2
  • 11
2
votes
3 answers

How to make text fit in cells in a wxPython grid?

Basically if I drag a cell I can size it to whatever size I want. Is there functionality in wxPython where cells expand automatically to fit the size of the text inside of them?
ulak blade
  • 2,515
  • 5
  • 37
  • 81
2
votes
1 answer

How to create a Checkbox Change event for a wxGrid cell

I've created a wxGrid, populated it with data, and have created a column that contains checkboxes, and made them editable. All good so far. co_Grid->SetReadOnly(at_RowCount, 24, false); co_Grid->SetCellRenderer(at_RowCount, 24, new…
Dave
  • 1,696
  • 4
  • 23
  • 47
2
votes
1 answer

wxgrid cell renderer set col size

I made a class whic extends PyGridCellRenderer and I can set size of columns with self.colSize = SOME_SIZE, but that sets same size for all columns, how can I set size for specific column?
Aleksa
  • 2,976
  • 4
  • 30
  • 49
2
votes
1 answer

Setting focus to cell wxGrid

How can I set focus to specific cell in wxGrid? For example, I catch enter pressed event in one cell, and I want to gain focus to cell which is on the right to that one. Default behavior is to gain focus to cell below when enter is pressed.
Aleksa
  • 2,976
  • 4
  • 30
  • 49
2
votes
1 answer

Is it possible to get the new column size from a GridSizeEvent in wxPython?

When a wx.grid.Grid's column is resized, a wx.grid.GridSizeEvent is emitted. From the docs and dir(event) output this appears to be the most useless class in all of wxPython. It apparently doesn't tell you any of the relevant information regarding a…
Hubro
  • 56,214
  • 69
  • 228
  • 381
1
vote
1 answer

How to add new rows to wxpython grid, when vertical progress bar is scrolled to the end of grid

At the launch of the program I want to load Wx.Grid with 5 cols and 1000 rows. And, I want to append 1000 rows again, when vertical scrollbar of wx.grid is scrolled to end of grid. So, I'm trying to catch wx.grid vertical scrollbar event when…
tarun_b
  • 15
  • 5
1
vote
1 answer

Refresh a grid with GridTableBase Class

I am trying to dynamically load a wxGrid with a pandas Dataframe depending on what table is selected in the combobox. I can get the grid to load on intialization, but can't figure out how to get refresh the GridTableClass and grid. Right now I am…
cmccall95
  • 149
  • 2
  • 11
1
vote
2 answers

wx.grid.Grid doesn't load image

I'm trying to use a code in this tutorial, but the result is a grayed cell and no image in the cell (see screenshot). It's been days since I started looking for a solution to add an image to a grid cell and I find this solution the least complicated…
Creek Barbara
  • 637
  • 1
  • 7
  • 29
1
vote
1 answer

wx.Grid and ScrolledWindows

I'm creating a WX Widgets app that displays a large amount of data via wx.grid. I'm actually using WX.Go. No matter what I do, the grid will not be inside the scrolled window and the grid even goes over the status bar. All I'm trying to do is have…
Chemdream
  • 618
  • 2
  • 9
  • 25
1
vote
1 answer

wxpython collapsible panes inconsistent sizing response

Okay so, something's odd and I can't figure it out. Suppose I've got some categories, each with some items, all fitted into a dictionary. import wx nyoom = {} nyoom['spiders'] = ['Yellow Sac', 'Orbweaver', 'Garden'] nyoom['cats']=…
Mythee
  • 60
  • 7
1
vote
1 answer

wxpython phoenix: How to get float values from wx grid cells and perform mathematical operations?

I am trying to build a invoice with wx grid, I would like to add the values in quantity column and the values in price column and display it in the row total. import wx import wx.grid as gridlib class MyForm(wx.Frame): def __init__(self): …
T. Guru
  • 13
  • 4
1
2 3 4 5