wx.grid 2.6.1.0 events

D

DarkBlue

Hello

pythoncard
wx 2.6.1
python 2.4.x
kinterbasdb
firebird

I have a wx.grid filled with data from a database
one of the fields is a blob field with text data, which
I want to display in some adjacent text control when I scroll
through the grid.

The question is which wx.EVT_XXX do I need
to use and how to 'connect ' the wx.grid to my TextArea
control ,so that the correct data gets displayed after
any row change?


Thanks for any hints.

Db
 
K

kyosohma

Hello

pythoncard
wx 2.6.1
python 2.4.x
kinterbasdb
firebird

I have a wx.grid filled with data from a database
one of the fields is a blob field with text data, which
I want to display in some adjacent text control when I scroll
through the grid.

The question is which wx.EVT_XXX do I need
to use and how to 'connect ' the wx.grid to my TextArea
control ,so that the correct data gets displayed after
any row change?

Thanks for any hints.

Db

Upon skimming the grid controls event types in the wxPython in Action
book, it looks like you could catch the wx.grid.EVT_GRID_SELECT_CELL
event. Then use the GetCellValue method to grab the selected cell's
contents and then write that to your TextCtrl.

If that doesn't work, please post the issue to the wxPython user's
group here: http://wxpython.org/maillist.php

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,689
Members
48,796
Latest member
Greg L.

Latest Threads

Top