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
1
vote
1 answer

How to add a grid to my program without that all of the rest of the program will be deleted?

This is my code: import wx import wx.grid as gridlib from random import randint OPTIONS = [1, 2, 3, 4, 5, 6, 7, 8, 9, "DEL", 0, "SEND"] # these are the events' IDs sent to a function when you click a button. # the OPTIONS_ID is in the same…
Omer Setty
  • 198
  • 1
  • 2
  • 11
1
vote
0 answers

wxPython Clipboard GetData not maintaining tabs or linefeeds on Mac

Hi I am new to python and I am self taught programmer otherwise. I am trying to get the copy and paste methods working for the clipboard in wxpython. I have found and implemented what I have found on the topic, but there is an issue when used on…
Frank
  • 59
  • 5
1
vote
2 answers

How to center a wx.Grid in wxPython

I am trying to center a wx.grid.Grid in wxPython. I have tried every possible combination of ID parameter 1,0,-1. I have tried to add wx.ALIGN_CENTER_HORIZONTAL to many sizers. I have been working on this for a few days now, any help would be…
user908759
  • 1,355
  • 8
  • 26
  • 48
1
vote
1 answer

Changing Size of Grid when grid data is changed

I'm having trouble updating a wx grid after it's initially created in Python. I'm following the steps located here: http://wiki.wxpython.org/wxGrid but for some reason the grid is not being displayed correctly. The rows keep on being added and…
grayaii
  • 2,241
  • 7
  • 31
  • 47
1
vote
1 answer

wx.Grid and wx.StockCursor

I've created wx.Grid widget inside my frame and I want to change my type of cursor if the user is using the grid widget. I've managed to do that with wx.StockCursor and .SetCursor methods but my cursor keeps returning to standard cursor if the user…
Domagoj
  • 1,674
  • 2
  • 16
  • 27
0
votes
0 answers

Highlight active cell in wx.grid.Grid even when the grid isn't focussed

I'm using a subclass of wx.grid.Grid that's added to a wx.Frame. The active cell (the one you get by calling wx.grid.GetGridCursorCoords()) is only highlighted (with a grey border) when the grid has focus. So, the grey border of the active cell is…
z80crew
  • 1,150
  • 1
  • 11
  • 20
0
votes
0 answers

Is there a way in wxPython to detect RTF format text on the clipboard?

I'm currently implementing paste from the clipboard in a wx.grid.Grid derived class. All works fine except for pasting from Excel on a Mac, where the data string converted from the clipboard using a wx.TextDataObject has two '\n' characters…
0
votes
1 answer

WxPython, How to implement paging functionality for wx.grid.Grid?

I want to load a csv file with (10 cols, 1 000 000 rows), on to wx.Grid with row autosizing. The time taken to auto size 1 million rows is too much (>1 hour depending on data). So I want to implement paging functionality to wx.Grid. Ideas I have in…
tarun_b
  • 15
  • 5
0
votes
1 answer

wxPython wx.grid.Grid is not loading fully with scrollbars

Issue I created an wx application with 1 Frame. The Frame will have menubar, which has open menu option. When open is clicked, a Wx.grid.Grid must be created in the frame with given rows, columns. I have been trying hard, but scrollbars are not…
tarun_b
  • 15
  • 5
0
votes
1 answer

wxGrid FreezeTo disable horizontal scrollbar

I use wxWidgets 3.1.5 under Windows, in which I have developed a I have a wxGrid that contains more columns than can be displayed, so a horizontal scroll bar is needed. The problem arises when I use FreezeTo in a virtual table base through…
famedoro
  • 1,223
  • 2
  • 17
  • 41
0
votes
1 answer

WXgrid drag and drop event - how to calculate scrolled position over classes

I'm stuck trying to get the unscrolled position when I try and implement a drag ond drop function onto a subgrid in a panel. I can get the unscrolled from within the class (see onMouseOver) but not across classes when I try the drag and drop which…
SteveF
  • 11
  • 2
0
votes
1 answer

Cells don't appear to be updating within a loop?

I'm trying to update a wxgrid with values read from a database. When I use SetCellValue directl above my loop, it correctly assigns the value, but within the loop it only appears to update a 'local'copy of the grid, and when out of the loop again,…
SteveF
  • 11
  • 2
0
votes
0 answers

Integrate new wxGrid in the old version 2.8.4

Currently I use the old version 2.8.4 of wxWidgets, now I need to use FreezeTo, the new wxGrid method presents in the new version 3.1.5. How can I import the new wxGrid class in the old version 2.8.4? I have tried looking for all the files that make…
famedoro
  • 1,223
  • 2
  • 17
  • 41
0
votes
0 answers

wx.grid/wx.grid.GridTableBase can not show data more than 7M rows (with a very simple example)?

The virtual wx.gridtablebase model is known to be able showing infinite rows, but it failed around 7M rows. The following minimal example is tested on wx version: 4.1.2a1.dev5165+64e5d863 msw (phoenix) wxWidgets 3.1.5. Thanks. import wx import…
LWX
  • 1
  • 1
0
votes
0 answers

Threading while loading wxGrid - Python

I'm loading a wxGrid with values from a dataframe. I'm trying to use threading so my GUI doesn't freeze(some of the SQL tables are ~60,000 x 16 and take some time to load), but I guess I'm not understanding the concept. Sometimes it runs just fine…
cmccall95
  • 149
  • 2
  • 11